java.lang.NullPointerException

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

java.lang.NullPointerException

RogerCooper
I am trying to convert the old Hearts of Iron2 scenarios. I am guessing that this a capitalization issue, but can someone give me idea of where the error might be. I fixed a unit name error already. I was thinking that "ResourceStat" might refer to "resourceGiven" but the everything seems to match.

Caused by: java.lang.NullPointerException
        at games.strategy.triplea.ui.AbstractStatPanel$ResourceStat.getName(AbstractStatPanel.java:70)
        at games.strategy.triplea.ui.StatPanel$StatTableModel.getColumnName(StatPanel.java:252)
        at javax.swing.JTable.addColumn(Unknown Source)
        at javax.swing.JTable.createDefaultColumnsFromModel(Unknown Source)
        at javax.swing.JTable.tableChanged(Unknown Source)
        at javax.swing.JTable.setModel(Unknown Source)
        at javax.swing.JTable.<init>(Unknown Source)
        at javax.swing.JTable.<init>(Unknown Source)
        at games.strategy.triplea.ui.StatPanel$1.<init>(StatPanel.java:71)
        at games.strategy.triplea.ui.StatPanel.initLayout(StatPanel.java:71)
        at games.strategy.triplea.ui.StatPanel.<init>(StatPanel.java:63)
        at games.strategy.triplea.ui.TripleAFrame.<init>(TripleAFrame.java:382)
        at games.strategy.triplea.TripleA.lambda$startGame$335(TripleA.java:124)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at games.strategy.engine.framework.GameRunner$1.dispatchEvent(GameRunner.java:360)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.NullPointerException

RogerCooper
I figured it out, the scenario was so old it was stilling using IPCs.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.NullPointerException

beelee
Right on Roger. I remember trying to play this when i first found triplea and it always threw an error. I'll have to give it a spin :)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.NullPointerException

Frostion
In reply to this post by RogerCooper
@RogerCooper
Are alle the maps you convert and update getting uploaded to Github and downloadable ingame?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.NullPointerException

Frostion
No need to answer the above... I can see in another thread they are available from your website, and that you may work on them getting to Github at some point.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.NullPointerException

RogerCooper
Frostion wrote
No need to answer the above... I can see in another thread they are available from your website, and that you may work on them getting to Github at some point.
The larger ones are on my website, the smaller ones are just here. When I am done converting, I will do as mass update to my site.
Loading...