Author: ssolsagl
Date: 2007-01-11 14:32:21 +0100 (Thu, 11 Jan 2007)
New Revision: 4320
Modified:
branches/2.8/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/RolesMobilePeopleExportDirective.java
Log:
Check for null value in nodeValue
Modified:
branches/2.8/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/RolesMobilePeopleExportDirective.java
===================================================================
---
branches/2.8/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/RolesMobilePeopleExportDirective.java
2007-01-11 13:25:21 UTC (rev 4319)
+++
branches/2.8/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/RolesMobilePeopleExportDirective.java
2007-01-11 13:32:21 UTC (rev 4320)
@@ -65,7 +65,14 @@
}
// The text string from datafield which all the roledata is stored
- final String raw = node.jjtGetChild(0).value(context).toString();
+ final Object nodeValue = node.jjtGetChild(0).value(context);
+
+ if(nodeValue == null) {
+ return true;
+ }
+
+ final String raw = nodeValue.toString();
+
// Convert the input to old format since the parsing will break
otherwise
String s = convert2OldFormat(raw);
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits