Fixes a NPE in history reading.

cusax-fix
Damian Minkov 14 years ago
parent 3eede72c8e
commit 37d7b326e2

@ -476,6 +476,10 @@ else if (logger.isInfoEnabled())
private static List<String> getCSVs(String str)
{
List<String> result = new LinkedList<String>();
if(str == null)
return result;
StringTokenizer toks = new StringTokenizer(str, DELIM);
while(toks.hasMoreTokens())
{

@ -217,9 +217,11 @@ public synchronized QueryResultSet<HistoryRecord> findLast(int count) throws Run
// Get nested TEXT node's value
Node nodeValue = propertyNode.getFirstChild();
if(nodeValue == null)
continue;
nameVals.add(propertyNode.getNodeName());
nameVals.add(nodeValue == null ?
null : nodeValue.getNodeValue());
nameVals.add(nodeValue.getNodeValue());
}
}

Loading…
Cancel
Save