[Yanel-dev] Strange NullPointer
basZero
baszero at gmail.com
Tue Sep 20 18:19:51 CEST 2011
Hi Michael,
I've noticed a change in the BasicXMLResource, now my new version based on *
r60815* is throwing a NullPointer exception while accessing any page of the
realm.
2903 2011-09-20 18:08:34,671 [http-8380-1] ERROR
org.wyona.yanel.impl.resources.BasicXMLResource.getXMLView():279 -
java.lang.NullPointerException
java.lang.NullPointerException
at
org.wyona.yanel.impl.resources.BasicXMLResource.getUserLanguage(BasicXMLResource.java:682)
*New code* in BasicXMLResource:
String userID = identity.getUsername();
if (userID != null) {
String userLanguage =
getRealm().getIdentityManager().getUserManager().getUser(userID).getLanguage();
Cheers
Balz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20110920/38e882c5/attachment.html>
More information about the Yanel-development
mailing list