Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318724

Summary: Drag of series is broken if there is no Platform (standalone application)
Product: z_Archived Reporter: Missing name <dvt>
Component: BIRTAssignee: Birt-Chart-inbox <Birt-Chart-inbox>
Status: NEW --- QA Contact: Maggie Shen <lshen>
Severity: normal    
Priority: P3 CC: bluesoldier, dvt
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Missing name CLA 2010-07-02 10:09:20 EDT
Build Identifier: v20100609-1613

In the DragEnter event of the DataTextDropListener, there is a call to Platform.getOS() done which throws a NullPointerException when it is started from a standalone application (Platform is not initialized)

It worked with Birt 2.5.1

java.lang.NullPointerException
 	at org.eclipse.core.internal.runtime.InternalPlatform.getOS(InternalPlatform.java:454)
 	at org.eclipse.core.runtime.Platform.getOS(Platform.java:1185)
 	at org.eclipse.birt.chart.ui.swt.DataTextDropListener.dragEnter(DataTextDropListener.java:61)
 	at org.eclipse.swt.dnd.DNDListener.handleEvent(Unknown Source)
...

Reproducible: Always