#284 fixed nullpointer exceptions, texttag

This commit is contained in:
Jindra Pet��k
2013-08-01 19:05:17 +02:00
parent 5697a248cc
commit 3fdfaa5b56
4 changed files with 21 additions and 3 deletions
@@ -1337,6 +1337,13 @@ public class Action implements GraphSourceItem {
if (o instanceof Long) {
return (Long) o;
}
if(o instanceof String){
try{
return Double.parseDouble((String)o);
}catch(NumberFormatException nfe){
return 0;
}
}
return 0;
}