Skip to content

Commit 2d1e121

Browse files
author
Zach Glueckert
committed
Added a missing null check for the provided AVList object of the doCanRead method.
1 parent 51c7259 commit 2d1e121

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/gov/nasa/worldwind/data/DTEDRasterReader.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ protected boolean doCanRead(Object source, AVList params)
4848
// times to be excessive.
4949
if (this.canReadSuffix(source))
5050
{
51-
params.setValue(AVKey.PIXEL_FORMAT, AVKey.ELEVATION); // we know that DTED is elevation data
51+
if (null != params)
52+
{
53+
params.setValue(AVKey.PIXEL_FORMAT, AVKey.ELEVATION); // we know that DTED is elevation data
54+
}
55+
5256
return true;
5357
}
5458

0 commit comments

Comments
 (0)