|[solved] NullPointerException Platform.getOS( ) in Standalone App [message #805241]
||Thu, 23 February 2012 14:38
| Frog Manhome
Registered: January 2012
I try to integrate the ChartWizard in a standalone application. But it crashes with a NullPointerException during a DragEnter Event.
I think the Problem is in the validation of DataTextDropListener
if ( Platform.OS_WIN32.equals( Platform.getOS( ) ) )
How can I fix this or register the Platform Object? I'm using BIRT 3.7.
I solved the Problem:
I run the application as a Java Application, this was the fault.
Now I run the Application as RCP (Eclipse Application).
Only if you run the ChartWizardLauncher as an RCP or OSGI the Platform object is set, else it will throw the NullPointer. Now it works.
Thanks for help.
[Updated on: Wed, 29 February 2012 11:56]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01481 seconds