This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 427843 - [GTK/Linux] NPE when opening some Form editor on GTK3
Summary: [GTK/Linux] NPE when opening some Form editor on GTK3
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 4.4 M6   Edit
Assignee: Paul Webster CLA
QA Contact: Paul Webster CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-10 16:07 EST by Snjezana Peco CLA
Modified: 2014-03-04 12:37 EST (History)
1 user (show)

See Also:


Attachments
A patch (1.18 KB, patch)
2014-02-10 16:12 EST, Snjezana Peco CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Snjezana Peco CLA 2014-02-10 16:07:43 EST
The issue only happens on Linux GTK3.
I have tested Luna 4.4M5.

Steps to reproduce:

Try to run a Form editor that configures a header (pom.xml, Mylyn New Task editor, JBoss Tools Central, for instance).
You will get an error log as described in https://issues.jboss.org/browse/JBIDE-16501
The form heading widget is painted before configuring.
The issue doesn't happen when using Plug-in Manifest Editor 

Attached is a patch.
Comment 1 Snjezana Peco CLA 2014-02-10 16:12:12 EST
Created attachment 239802 [details]
A patch
Comment 2 Paul Webster CLA 2014-02-11 09:14:56 EST
What's happening in GTK3?  Doesn't that make this an SWT bug?

PW
Comment 3 Snjezana Peco CLA 2014-02-11 17:57:45 EST
I think the bug is caused by the way GTK3 fires paint events.
Not sure if it can be fixed in SWT.
I have created a simple fix.
Comment 4 Paul Webster CLA 2014-02-13 09:41:00 EST
I've pushed the change up to https://git.eclipse.org/r/21946

Snjezana, if you have any future changes please push them up to the Gerrit system.

PW
Comment 6 Paul Webster CLA 2014-03-04 12:37:18 EST
In 4.4.0.I20140303-2000

PW