mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 02:10:44 +00:00
#284 fixed nullpointer exceptions, texttag
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user