Page 1 of 1

Null Pointers

PostPosted: 24 Jul 2010, 06:44
by lazylockie
Is it just here or there are many null pointer exceptions on the SVN version? So far, I'm getting:

- when I start Forge (forge.Gui_NewGame.main)
- changing card size (forge.Gui_NewGame$CardSizesAction.set)
- changing max stack size (forge.Gui_NewGame$CardStackAction.set)
- changing stack offset (forge.Gui_NewGame$CardStackOffsetAction.set)

My current revision is 1542, but those null pointers have been appearing since 1521

Re: Null Pointers

PostPosted: 24 Jul 2010, 07:12
by DennisBergkamp
Hmm, I haven't gotten a single one with the latest release.
Check in your "root" Forge folder (the one that contains "forge.properties") to see if you have a file named "forge.preferences".
If not, create a blank file with that name.

Not sure if that's actually the problem though...

Re: Null Pointers

PostPosted: 24 Jul 2010, 11:28
by Chris H.
lazylockie wrote:Is it just here or there are many null pointer exceptions on the SVN version? So far, I'm getting:

- when I start Forge (forge.Gui_NewGame.main)
- changing card size (forge.Gui_NewGame$CardSizesAction.set)
- changing max stack size (forge.Gui_NewGame$CardStackAction.set)
- changing stack offset (forge.Gui_NewGame$CardStackOffsetAction.set)

My current revision is 1542, but those null pointers have been appearing since 1521
`
There needs to be a file named "forge.preferences" in the forge folder. You may be missing this file or the file may be corrupted. Download this archive and place it in your forge folder and this may take care of your problem. :D


`

Re: Null Pointers

PostPosted: 24 Jul 2010, 18:25
by lazylockie
Chris H. wrote:
lazylockie wrote:Is it just here or there are many null pointer exceptions on the SVN version? So far, I'm getting:

- when I start Forge (forge.Gui_NewGame.main)
- changing card size (forge.Gui_NewGame$CardSizesAction.set)
- changing max stack size (forge.Gui_NewGame$CardStackAction.set)
- changing stack offset (forge.Gui_NewGame$CardStackOffsetAction.set)

My current revision is 1542, but those null pointers have been appearing since 1521
`
There needs to be a file named "forge.preferences" in the forge folder. You may be missing this file or the file may be corrupted. Download this archive and place it in your forge folder and this may take care of your problem. :D


`
It works now! Thanks!

Makes sense now that forge was asking about not being able to save the preferences when quitting the game =]