Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8649841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:39:24+00:00 2026-06-12T13:39:24+00:00

I have a frustrating issue that my app on Google Appengine throws NullPointerException like:

  • 0

I have a frustrating issue that my app on Google Appengine throws NullPointerException like:

java.lang.NullPointerException
    at com.google.appengine.api.users.User.equals(User.java:143)

My code looks like:

if (excludeUser.equals(someEntity.getProperty("user")))

The user property in the entity was another User object previously stored in the datastore. Even if I change the code to something like the following, it does not raise the exception:

if (excludeUser.equals(null))

So I guess it’s some internal logic in User.equals causes the problem, or some other tricky thing when storing the user object into the datastore?

In addition, the logic works well in development environment. The problem only happens on GAE.

I’m using the Google Accounts API, not the Federated login. I tried them both. The same result. Any clue is appreciated, thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:39:25+00:00Added an answer on June 12, 2026 at 1:39 pm

    Things turn out to be special case from the UserService.getUser(). No idea why it returns a not-null user, with the following content:

    authDomain:https://www.google.com/accounts/o8/ud, 
    email:, 
    federatedId:https://www.google.com/accounts/o8/id?id=....., 
    nickname:, 
    userId:
    

    Invoking .equals method on such object with other normal User objects results the NullPointerException. Guess this is somekind of the Federated Login weirdo?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have already built a rails app that has several users and an image
I have a really frustrating issue where I cannot retrieve any of the headers.
I'm facing a frustrating issue. I have an application where the scroll wheel doesn't
I have a really frustrating error that I've spent hours looking at and cannot
I have a simple little code fragment that is frustrating me: HashSet<long> groupUIDs =
I am having a rather frustrating issue trying to call a web service that
I have a bizzare issue that I haven't been able to resolve no matter
I have the same issue as in this post: http://social.microsoft.com/Forums/en-US/netfxbcl/thread/10027dd8-da47-4691-91a6-a8b89a7f514a Anyone know a possible
My app has been running fine on iPhone simulator. I have hit an issue
I'm facing a frustrating issue , I have an Activity with 3 Tabs and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.