Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in launcher wizard if the ale key points to the wrong ale file #13

Open
dvojtise opened this issue Jun 11, 2019 · 0 comments
Open
Labels
bug Something isn't working

Comments

@dvojtise
Copy link
Contributor

if the dsl file points to a non existing ale file
then in the launch configuration, trying to browse for the main method raises a NullPointerException

java.lang.NullPointerException
	at org.eclipse.emf.ecoretools.ale.ide.WorkbenchDsl.pluginToFile(WorkbenchDsl.java:96)
	at org.eclipse.emf.ecoretools.ale.ide.WorkbenchDsl.convertToFile(WorkbenchDsl.java:66)
	at org.eclipse.emf.ecoretools.ale.ide.WorkbenchDsl.lambda$0(WorkbenchDsl.java:50)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
	at org.eclipse.emf.ecoretools.ale.ide.WorkbenchDsl.resolveUris(WorkbenchDsl.java:50)
	at org.eclipse.emf.ecoretools.ale.ide.WorkbenchDsl.<init>(WorkbenchDsl.java:33)
	at org.eclipse.gemoc.ale.interpreted.engine.Helper.gemocDslToAleDsl(Helper.java:24)
	at org.eclipse.gemoc.ale.interpreted.engine.ui.SelectMainMethodDialog.update(SelectMainMethodDialog.java:48)
	at org.eclipse.gemoc.ale.interpreted.engine.ui.SelectMainMethodDialog.<init>(SelectMainMethodDialog.java:34)
	at org.eclipse.gemoc.ale.interpreted.engine.ui.launcher.tabs.LaunchConfigurationMainTab$8.widgetSelected(LaunchConfigurationMainTab.java:346)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)

Instead, it should raise a proper error message in the eclipse log

Steps to reproduce: get the official example, change the dsl file and introduce a typo in the path for the ale file. in the modeling workbench create a new launch configuration and try to browse the main method for the language

@dvojtise dvojtise added the bug Something isn't working label Jun 11, 2019
fcoulon added a commit to fcoulon/gemoc-studio-execution-ale-eclipsefork that referenced this issue Jun 12, 2019
Signed-off-by: fcoulon <fabien.coulon@obeo.fr>
dvojtise pushed a commit that referenced this issue Jun 25, 2019
Signed-off-by: fcoulon <fabien.coulon@obeo.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant