kurtomerfaruk / wicked-charts

Automatically exported from code.google.com/p/wicked-charts
0 stars 0 forks source link

Wicket-chart is not rendered in wicket-dashboard #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We have using wicket-dashboard-core, version 0.6 in our application.We have 
added wicket-chart as widgets.When we added wicket chart widget to dashboard it 
throws this exception
"
java.lang.NullPointerException at 
com.googlecode.wickedcharts.highcharts.options.util.OptionsUtil.setChartEventsLo
ad(OptionsUtil.java:66)  at 
com.googlecode.wickedcharts.wicket6.highcharts.features.livedata.LiveDataProcess
or.processOptions(LiveDataProcessor.java:61)at 
com.googlecode.wickedcharts.wicket6.highcharts.features.basic.ChartBehavior.onCo
nfigure(ChartBehavior.java:122)
     at org.apache.wicket.Component.configure(Component.java:1033)
     at org.apache.wicket.Component.internalBeforeRender(Component.java:913)
     at org.apache.wicket.Component.beforeRender(Component.java:990)
     at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1677)
     at org.apache.wicket.Component.onBeforeRender(Component.java:3835)
"
We have using wicked-charts-wicket6, 1.4.3 in our application

I need suggestion to solve this exception.

Original issue reported on code.google.com by madas...@mcruncher.com on 12 Apr 2013 at 3:38

GoogleCodeExporter commented 9 years ago
Hi,

this issue is already fixed and the fix will be included in the next release 
(see issue 29).

As workaround call options.setChartOptions(new ChartOptions()) so that 
chartOptions is not null and the NullPointerException will not be thrown

Original comment by tom.homb...@gmail.com on 13 Apr 2013 at 6:10