From: SourceForge.net <no...@so...> - 2008-08-21 00:04:55
|
Bugs item #2045762, was opened at 2008-08-10 20:46 Message generated for change (Comment added) made by thpr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384719&aid=2045762&group_id=25576 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Crash Group: To be fixed For 5.16.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: LegacyKing (amaitland) Assigned to: Tom Parker (thpr) Summary: Stack Trace for a bug - RE: Ability Problems Initial Comment: Hi all, I get this error when I try to add this ability at 3rd level. Any ideas where this error came from? Foo Learning 1 CATEGORY:Spell Learning TYPE:FooLearning MULT:Yes STACK:No VISIBLE:Display SELECT:1 CHOOSE:SPELLS|SCHOOL=Evocation,CLASSLIST=Sorcerer [LEVELMIN=1;LEVELMAX=MAXCASTABLE] 12:19:10.859 SEVERE AWT-EventQueue-1 pcgen.gui.tabs.InfoAbility addAbility Faile d to add ability due to java.lang.NullPointerException at pcgen.core.VariableProcessorPC.getInternalVariable(Unknown Source) at pcgen.core.VariableProcessorPC.lookupVariable(Unknown Source) at pcgen.core.VariableProcessor.processJepFormula(Unknown Source) at pcgen.core.VariableProcessor.getVariableValue(Unknown Source) at pcgen.core.PlayerCharacter.getVariableValue(Unknown Source) at pcgen.core.PlayerCharacter.getVariableValue(Unknown Source) at pcgen.core.chooser.SpellsChoiceManager.getRestriction (Unknown Source) at pcgen.core.chooser.SpellsChoiceManager.getChoices(Unknown Source) at pcgen.core.chooser.ChooserUtilities.modChoices(Unknown Source) at pcgen.core.Ability.modChoices(Unknown Source) at pcgen.core.Ability.modChoices(Unknown Source) at pcgen.core.AbilityUtilities.finaliseAbility(Unknown Source) at pcgen.core.PlayerCharacter.addAbility(Unknown Source) at pcgen.gui.tabs.InfoAbility.addAbility(Unknown Source) at pcgen.gui.tabs.ability.AvailableAbilityPanel$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at pcgen.gui.PCGen_Frame1$WaitCursorEventQueue.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) Cheers Hedron ---------------------------------------------------------------------- >Comment By: Tom Parker (thpr) Date: 2008-08-20 20:05 Message: Logged In: YES user_id=1037926 Originator: NO NPE is thrown because PC is not a sorcerer - this is an improper calculation of the variable, should be based on classes that have access to the list of the given name, not class of the given name. ---------------------------------------------------------------------- Comment By: LegacyKing (amaitland) Date: 2008-08-20 00:46 Message: Logged In: YES user_id=1286039 Originator: YES Testing 5.15.0, no errors, everything works as expected when the character is a sorcerer. Foo Learning 1 CATEGORY:Spell Learning TYPE:FooLearning MULT:YES STACK:NO VISIBLE:DISPLAY SELECT:1 CHOOSE:SPELLS|SCHOOL=Evocation,CLASSLIST=Sorcerer[LEVELMIN=1;LEVELMAX=MAXCASTABLE] If used on a non-sorcerer then the above message appears. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384719&aid=2045762&group_id=25576 |