NPE - Create NPC - 20 Level Human Monk brings up several NPEs

Description

NPCGen - 20th Level Human Monk

java.lang.NullPointerException
at pcgen.core.Globals.getSpellsIn(Globals.java:1568)
at pcgen.core.npcgen.ClassDataHandler.endElement(ClassDataParser.java:532)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:311)
at pcgen.core.npcgen.ClassDataParser.parse(ClassDataParser.java:102)
at pcgen.core.npcgen.Configuration.get(Configuration.java:129)
at pcgen.core.npcgen.NPCGenerator.setConfiguration(NPCGenerator.java:99)
at pcgen.core.npcgen.NPCGenerator.getInst(NPCGenerator.java:93)
at pcgen.core.npcgen.NPCGenerator.getSubSkillWeightAdd(NPCGenerator.java:104)
at pcgen.core.npcgen.SkillChoice.getSkill(SkillChoice.java:82)
at pcgen.core.npcgen.NPCGenerator.selectSkills(NPCGenerator.java:216)
at pcgen.core.npcgen.NPCGenerator.generate(NPCGenerator.java:690)
at pcgen.gui.PCGen_Frame1.doNewNPC(PCGen_Frame1.java:1459)
at pcgen.gui.PCGen_Frame1.newNPCItem_actionPerformed(PCGen_Frame1.java:1476)
at pcgen.gui.FrameActionListener$9.actionPerformed(FrameActionListener.java:138)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
at java.awt.Component.processMouseEvent(Component.java:5517)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5282)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3984)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at pcgen.gui.PCGen_Frame1$WaitCursorEventQueue.dispatchEvent(PCGen_Frame1.java:2939)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
java.lang.NullPointerException
at pcgen.core.Globals.getSpellsIn(Globals.java:1568)
at pcgen.core.npcgen.ClassDataHandler.endElement(ClassDataParser.java:532)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:311)
at pcgen.core.npcgen.ClassDataParser.parse(ClassDataParser.java:102)
at pcgen.core.npcgen.Configuration.get(Configuration.java:129)
at pcgen.core.npcgen.NPCGenerator.setConfiguration(NPCGenerator.java:99)
at pcgen.core.npcgen.NPCGenerator.getInst(NPCGenerator.java:93)
at pcgen.core.npcgen.NPCGenerator.getSubSkillWeightAdd(NPCGenerator.java:104)
at pcgen.core.npcgen.SkillChoice.getSkill(SkillChoice.java:82)
at pcgen.core.npcgen.NPCGenerator.selectSkills(NPCGenerator.java:216)
at pcgen.core.npcgen.NPCGenerator.generate(NPCGenerator.java:690)
at pcgen.gui.PCGen_Frame1.doNewNPC(PCGen_Frame1.java:1459)
at pcgen.gui.PCGen_Frame1.newNPCItem_actionPerformed(PCGen_Frame1.java:1476)
at pcgen.gui.FrameActionListener$9.actionPerformed(FrameActionListener.java:138)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
at java.awt.Component.processMouseEvent(Component.java:5517)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5282)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3984)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at pcgen.gui.PCGen_Frame1$WaitCursorEventQueue.dispatchEvent(PCGen_Frame1.java:2939)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Environment

None

Activity

Show:
James Dempsey
August 1, 2010, 7:07 PM

Reproduced in 5.16.3 RC2, but works fine in trunk.

James Dempsey
August 1, 2010, 7:09 PM

Also fixed a bug where Lawful Good could not be set as an alignment

Assignee

James Dempsey

Reporter

Andrew Maitland

Labels

None

Theme

None

Epic/Theme

None

Pending User Input

None

Components

Fix versions

Affects versions

Priority

Minor
Configure