PDA

View Full Version : NullPointerException in WMSLayerDimension


Llamas
05-31-2011, 07:58 PM
There is a NullPointerException in gov.nasa.worldwind.ogc.wms.WMSLayerDimen sion when calling getDimension() on a dimension without any characters in the Dimension element.

protected StringBuilder dimension;
is never initialized when you call dimension.toString();

For example, this layer from http://onearth.jpl.nasa.gov/wms.cgi?

<Layer queryable="0">
<Name>daily_planet</Name>
.....
<Dimension name="time" units="ISO8601"/>
<Extent name="time">2007-12-01/2010-03-20/P1D</Extent>
.....
</Layer>

tag
06-03-2011, 02:21 AM
We're working on this right now. Thanks.

tag
06-07-2011, 06:30 PM
This has been fixed and is in the current release. Thanks for letting us know about it.