We ask that fixes be submitted as pull requests to master (and we have not
problem backporting fixes so it appears in the next 15.x build).

Looking at the stack trace the error is in this line:

        if (!coverages.isEmpty()) {
            ColorModel cm =
coverages.get(0).getRenderedImage().getColorModel();

Are you getting a null rendered image or a null color model?

--
Jody Garnett

On 2 June 2016 at 14:06, Gabriella Turek <[email protected]> wrote:

> Not 100% reproducible, but easy to (randomly) recreate.
>
> Set CRS to 27200
> Zoom to Wellington
> Click on WMS button
> Add Chart NZ 4634.
> Zoom in to approx area of Pt Howard.
> If error has not yet occurred, continue
> Add Chart NZ 4632 (will be offscreen)
> Zoom out.
> If error has not yet occurred, continue alter zoom.
>
> Second time error occurs, background map also disappears, leaving white
> screen.
>
> May 02, 2016 4:11:39 PM org.geotools.renderer.lite.StreamingRenderer
> fireErrorEvent
> SEVERE: null
> java.lang.NullPointerException
> at
> org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:819)
> at
> org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.paint(GridCoverageRenderer.java:1165)
> at
> org.geotools.renderer.lite.StreamingRenderer$RenderCoverageReaderRequest.execute(StreamingRenderer.java:3414)
> at
> org.geotools.renderer.lite.StreamingRenderer$PainterThread.run(StreamingRenderer.java:3503)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
>
>
> Mavenized reproducible example and proposed patch has been prepared and
> submitted to geotools' bug tracker.
>
> Any chance this will be included in the next 15.x build? If not we will
> have to improvise a patch ourselves
>
> Thanx
>
> Gaby
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to