What happens if you change @Persistent to @Persistent(defaultFetchGroup = "true") ?
Tito George wrote: > Enviornment: Local > I have a Text field in one Persistent capable object, > @Persistent > private com.google.appengine.api.datastore.Text event_Description; > > I am sure that i am not setting null into this field. > But while operating on queried object event_Description.getValue() is > throwing NullPointerException. I am quering like this. > > public static Map<Long, Event> getEvents(AppUser appUser){ > PersistenceManager pm = > PMF.getInstance().getPersistenceManager(); > Query query = pm.newQuery(Event.class); > query.setFilter("email == pEmail"); > query.declareParameters("String pEmail"); > List<Event> result = null; > Map<Long, Event> eventsMap = null; > try { > result = (List<Event>) > query.execute(appUser.getEmail()); > eventsMap = new HashMap<Long, Event>(); > for(Event e: result){ > //LINE TO REPLACE > eventsMap.put(e.getEvent_ID(), e); > } > } finally { > pm.close(); > query.closeAll(); > } > return eventsMap; > } > > Its works fine if I replace above commented line(//LINE TO REPLACE) > with > String str = e.getEvent_Description(); > or > sop(e.getEvent_Description()); > or > e.getEvent_Description(); > > Any Comments??? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---