Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [nebula-dev] NullPointerException with CDateTime (new in 2.4)

Hi Matthias,

We (Laurent) already fixed this. I will make an intermediate 2.4.1 release for this issue ASAP.

In the meantime you may use the snapshot build.

Cheers,

Wim

On Thu, Jul 9, 2020, 4:51 PM Matthias Paul Scholz <matthias.paul.scholz@xxxxxxxxx> wrote:
Thanks for the new release and in particular  the theming support for various widgets!

Sadly, when switching to the 2.4 in our application (without changing any code)  I instantly ran into a NullPointerException  in the CDateTime widget.

Creating a CDateTime with 

new CDateTime(parent, getStyle() | CDT.DROP_DOWN  | CDT.DATE_MEDIUM | CDT.TIME_MEDIUM | CDT.CLOCK_DISCRETE);

(which worked with 2.3) led to 

 java.lang.NullPointerException
at org.eclipse.nebula.widgets.cdatetime.CDateTime.setBackground(CDateTime.java:2245)
at org.eclipse.e4.ui.css.swt.helpers.CSSSWTColorHelper.setBackground(CSSSWTColorHelper.java:360)
at org.eclipse.e4.ui.css.swt.properties.css2.CSSPropertyBackgroundSWTHandler.applyCSSPropertyBackgroundColor(CSSPropertyBackgroundSWTHandler.java:80)
 
Looks like the picker instance is always null when not using CDT.SIMPLE ...

Best,
  MP
_______________________________________________
nebula-dev mailing list
nebula-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/nebula-dev

Back to the top