error UnitImageFactory.getBaseImageName

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

error UnitImageFactory.getBaseImageName

Bas71
Hi, can anyone help with this error?
It occurs right after a bombing raid (where unit production is affected).


java.lang.NullPointerException
        at games.strategy.triplea.image.UnitImageFactory.getBaseImageName(UnitImageFactory.java:233)
        at games.strategy.triplea.image.UnitImageFactory.getIcon(UnitImageFactory.java:205)
        at games.strategy.triplea.ui.SimpleUnitPanel.addUnits(SimpleUnitPanel.java:123)
        at games.strategy.triplea.ui.SimpleUnitPanel.setUnitsFromCategories(SimpleUnitPanel.java:115)
        at games.strategy.triplea.ui.history.HistoryDetailsPanel.renderUnits(HistoryDetailsPanel.java:115)
        at games.strategy.triplea.ui.history.HistoryDetailsPanel.render(HistoryDetailsPanel.java:91)
        at games.strategy.triplea.ui.history.HistoryPanel.gotoNode(HistoryPanel.java:298)
        at games.strategy.triplea.ui.history.HistoryPanel.access$700(HistoryPanel.java:33)
        at games.strategy.triplea.ui.history.HistoryPanel$7.run(HistoryPanel.java:326)
        at games.strategy.triplea.ui.history.HistoryPanel.goToEnd(HistoryPanel.java:335)
        at games.strategy.triplea.ui.history.HistoryPanel$4.treeStructureChanged(HistoryPanel.java:142)
        at javax.swing.tree.DefaultTreeModel.fireTreeStructureChanged(Unknown Source)
        at javax.swing.tree.DefaultTreeModel.reload(Unknown Source)
        at games.strategy.engine.history.HistoryWriter.setRenderingData(HistoryWriter.java:282)
        at games.strategy.engine.framework.HistorySynchronizer$1$4.run(HistorySynchronizer.java:116)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        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
|

Re: error UnitImageFactory.getBaseImageName

Veqryn
Administrator
bas, i wish i knew how you are able to get so many errors

this could be a missing graphic

or a missing property

or a missing attachment

or something misnamed


(may i suggest next time you make a map you just copy the entire attachments and properties section right out of v3 and use that?)
Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html
Reply | Threaded
Open this post in threaded view
|

Re: error UnitImageFactory.getBaseImageName

Bas71
Thanks. Since I'm pretty keen on the basics (images, names) I went looking for properties and attachments. Turned out I was missing the unit attachment for factory_hit.