-
Notifications
You must be signed in to change notification settings - Fork 230
Description
I have a large SWT app, which worked fine for years, but when I updated to Eclipse 2025-12 and used the jars from it's plugins folder, the app crashes when it tries to display the first main form.
Cannot invoke "String.equals(Object)" because the return value of "org.eclipse.core.runtime.Platform.getOS()" is null
java.lang.NullPointerException
at org.eclipse.core.runtime.Platform$OS.is(Platform.java:82)
at org.eclipse.core.runtime.Platform$OS.isWindows(Platform.java:89)
at org.eclipse.ui.forms.widgets.ExpandableComposite$ExpandableLayout.layout(ExpandableComposite.java:294)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1333)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1339)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1339)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1339)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1339)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1339)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1339)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1339)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1339)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1339)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1318)
at org.eclipse.swt.widgets.Composite.layout(Composite.java:698)
at org.eclipse.swt.widgets.Display.runSettings(Display.java:4221)
at org.eclipse.swt.widgets.Display.messageProc(Display.java:3370)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3748)
Is has these jars on the classpath.
There was a runtime arg that worked once when I tried it (AI told me, but seems to have forgot).
Is there a way to fix this? It works fine in previous versions of SWT.