Author: michiel Date: 2009-10-20 17:28:34 +0200 (Tue, 20 Oct 2009) New Revision: 39250
Modified: mmbase/trunk/core/src/main/java/org/mmbase/util/LocalizedEntryListFactory.java Log: avoid NPE's Modified: mmbase/trunk/core/src/main/java/org/mmbase/util/LocalizedEntryListFactory.java =================================================================== --- mmbase/trunk/core/src/main/java/org/mmbase/util/LocalizedEntryListFactory.java 2009-10-20 12:11:15 UTC (rev 39249) +++ mmbase/trunk/core/src/main/java/org/mmbase/util/LocalizedEntryListFactory.java 2009-10-20 15:28:34 UTC (rev 39250) @@ -342,7 +342,12 @@ String gui = function.getFunctionValue(function.createParameters()).toString(); return new Entry<C, String>((C) next, gui); } catch (NotFoundException nfe) { - return new Entry<C, String>((C) next, "" + node.getNumber()); + if (node == null) { + return new Entry<C, String>((C) next, "-1"); + } else { + return new Entry<C, String>((C) next, "" + node.getNumber()); + } + } } } else { _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs