RPTools.net
http://forums.rptools.net/

chartool - nullPointer error - a partial fix
http://forums.rptools.net/viewtopic.php?f=15&t=26862
Page 1 of 1

Author:  bad_zod [ Mon Aug 22, 2016 5:08 pm ]
Post subject:  chartool - nullPointer error - a partial fix

Hi,

I've been trying to use the rptools to setup a game and ran into the chartool error that seems to be effecting everyone these days.

I don't know who the main developer is but I've done some fixes so that it mostly works.

You need to overwrite the existing jar with this new one (remove the .txt extension first)

The parser code doesnt seem to be checking for nulls anywhere which is the issue but why it's getting them in the first place is a whole new issue.

It could be a problem with the javascript execution as that errors (property/propertyDescriptorSet.xml in d20fantasy.rpgame) but I dont know much about that yet ....

Enjoy

bz

Attachments:
Addition.java.txt [2.26 KiB]
Downloaded 61 times
parser-1.1.b23.jar.txt [78.22 KiB]
Downloaded 78 times

Author:  bad_zod [ Mon Aug 22, 2016 5:23 pm ]
Post subject:  chartool - nullPointer error - a partial fix

Hi,

I've found a partial fix to this issue. I dont know why it's happening, the List param object has nulls in it which is causing the failures.

I think the javascript excutution failing (d20fantasy.rpgame file, propertyDescriptorSet.xml) might be the root cause ...

When I made changes to src/main/java/net/rptools/parser/function/impl/Addition.java and did additional checks for nulls it made chartool usable ...

Enjoy

BZ

Author:  bad_zod [ Mon Aug 22, 2016 10:40 pm ]
Post subject:  Re: chartool - nullPointer error - a partial fix

or the quickest way is to install java 1.6 then dont have any issues at all ....

Author:  jay [ Tue Aug 23, 2016 10:24 am ]
Post subject:  Re: chartool - nullPointer error - a partial fix

The character tools was written in Java 6. I never tested on any other version.

Author:  RPTroll [ Tue Aug 23, 2016 12:04 pm ]
Post subject:  Re: chartool - nullPointer error - a partial fix

It would be great if Jay or a volunteer would port CharTool over to the GitHub repository and get it up to snuff with the latest version of Java.

/fingerscrossed

Author:  Azhrei [ Tue Aug 23, 2016 9:32 pm ]
Post subject:  Re: chartool - nullPointer error - a partial fix

BZ, I sent you an emailed reply to your code submission asking for the stacktrace. If you have one, can you send it along? I don't run CT myself, so I'm not familiar with it at all. (I could try bringing it up to snuff for Java 8, but that's time that can't be spent somewhere else.)

But I'm willing to at least look at it and see what the options are.

Thanks.

Page 1 of 1 All times are UTC - 6 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/