Bug Issue: Random error upon opening game (get/set attribute)


Pages: 1

Jon

  • Chief Stencyler
  • *
September 26, 2015, 01:46:57 pm
I get this randomly upon opening Alien Approach. It's pretty rare, but it's happened twice today.

Code: [Select]
2015-09-26 13:35:44,857 ERROR [AWT-EventQueue-0] root: Unexpected problem on thread pool-2-thread-1: null
java.lang.NullPointerException
at stencyl.sw.editors.snippet.designer.Definitions.createGetVariableBlock(Definitions.java:860)
at stencyl.sw.editors.snippet.designer.SnippetDesigner.createVarGetter(SnippetDesigner.java:780)
at stencyl.sw.editors.snippet.designer.codebuilder.CodeBuilder.loadDefinitions(CodeBuilder.java:254)
at stencyl.sw.editors.snippet.designer.codebuilder.CodeBuilder.writeToString(CodeBuilder.java:277)

It might be related to the change where you made it possible to have the game attribute blocks show up without having to reload a behavior.

It doesn't seem to have any detrimental effects, besides the error dialog popping up. I can still run the game and open up everything.
« Last Edit: September 26, 2015, 01:48:19 pm by Jon »


Issue updated by Jon - September 26, 2015, 01:47:13 pm
  • Issue Assigned from (none) to Justin


Jon

  • Chief Stencyler
  • *
October 06, 2015, 11:25:04 pm


Jon

  • Chief Stencyler
  • *
October 06, 2015, 11:29:46 pm
Code: [Select]
if(!attributeGetBlocks.containsKey(modelID))
attributeGetBlocks.put(modelID, new DefinitionMap());
attributeGetBlocks.get(modelID).put(tag, d);

The third line is at fault. This can happen if the modelID exists, but the entry for that ID is null. I'm going to add in a null check to guard against this.


Jon

  • Chief Stencyler
  • *
October 06, 2015, 11:35:16 pm
Fixed in b8723.
  • Status changed from New to Resolved


Issue updated by Justin - April 06, 2016, 11:06:12 am
  • Status changed from Resolved to Closed


Pages: 1

Details

  • Reported
    September 26, 2015, 01:46:57 pm
  • Updated
    April 06, 2016, 11:06:12 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    3.3.2
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    UI / Workflow

Tags