fix for npe

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7379 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent c288fcf634
commit c54170421a

@ -237,7 +237,7 @@ public class serverObjects extends HashMap<String, String> implements Cloneable
* @see #putNum(String, long) * @see #putNum(String, long)
*/ */
public String putNum(final String key, final String value) { public String putNum(final String key, final String value) {
return this.put(key, Formatter.number(value)); return this.put(key, value == null ? "" : Formatter.number(value));
} }

Loading…
Cancel
Save