[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.laszlo] Re: NullPointerException when switching editor windows with Lazlo IDE installed

Greg Murray wrote:

I get the stack trace at the end of this message, regardless of what perspective I try and switch to.> at
org.eclipse.core.launcher.Main.main(Main.java:948)

I am not sure what the real root of this problem is, but you modify org.eclipse.laszlo.rct.script.internal.ScriptModel to protect against a null project nature, and patch plugins/org.eclipse.laszlo.rct.script_0.2.0/script.jar with the modified class file, the problem goes away. I had to modify ScriptModel in two places:
(1) At the beginning of ScriptModel:determineIfInSource, I return null if(project.getProjectNature() == null)
(2) At the beginning of ScriptModel:conflictsWithOutputLocation, I return false (although maybe this should be true?) if(project.getProjectNature()==null)


Hope that helps.

Keith