title: AutoLoginFilter: Current URL Generates Exception
body: <p>I have Liferay installed on two different servers, both using the same LDAP configuration/server. </p>
  
  <p>My first environment queries the LDAP server and auto-logins the user. My second environment does not and throws this exception:</p>
  
  <pre><code>07:57:46,519 ERROR [ajp-bio-20120-exec-10][AutoLoginFilter:257] Current URL 
  /myPortal/home generates exception: java.lang.NullPointerException
  </code></pre>
  
  <p>They of course have different virtual hosts; any idea as to what is causing this?</p>
  
  <p>Additional info: </p>
  
  <ul>
  <li><code>live.users.enabled=true</code></li>
  <li><code>users.reminder.queries.enabled=false</code></li>
  <li>The only difference between the two environments is a change in the
  URL - which tells me somewhere this second URL maybe needs to be set</li>
  </ul>