When creating syntactically invalid stratego constructors a nullpointer exception rises.

Minimal example:

module test
signature
  sorts A
  construtors
    Foo : A -> A -> A

The stacktrace below is created with an older version of spoofax. In the current version (1.2.0.0-s41460) no stacktrace is shown.

    java.lang.NullPointerException
	at org.spoofax.jsglr.client.imploder.ImploderAttachment.getLeftToken(ImploderAttachment.java:108)
	at org.spoofax.jsglr.client.imploder.ImploderAttachment.getTokenizer(ImploderAttachment.java:151)
	at org.strategoxt.imp.runtime.parser.SGLRParseController.parse(SGLRParseController.java:300)
	at org.strategoxt.imp.runtime.parser.SGLRParseController.parse(SGLRParseController.java:1)
	at org.strategoxt.imp.runtime.dynamicloading.DynamicParseController.parse(DynamicParseController.java:206)
	at org.eclipse.imp.editor.ParserScheduler.run(ParserScheduler.java:86)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Submitted by Pascal Wittmann on 6 May 2014 at 19:50

Log in to post comments