diff --git a/cave/com.raytheon.uf.viz.pointset/src/com/raytheon/uf/viz/pointset/rsc/PointSetResource.java b/cave/com.raytheon.uf.viz.pointset/src/com/raytheon/uf/viz/pointset/rsc/PointSetResource.java index 606a86cd95..c6b79dd883 100644 --- a/cave/com.raytheon.uf.viz.pointset/src/com/raytheon/uf/viz/pointset/rsc/PointSetResource.java +++ b/cave/com.raytheon.uf.viz.pointset/src/com/raytheon/uf/viz/pointset/rsc/PointSetResource.java @@ -203,7 +203,8 @@ public class PointSetResource extends * com.raytheon.uf.common.style.level.Level exposes units */ Unit unitsOut = result.getUpperMeasure().getUnit(); - if (!unitsIn.equals(unitsOut) && unitsIn.isCompatible(unitsOut)) { + if (unitsIn != null && !unitsIn.equals(unitsOut) + && unitsIn.isCompatible(unitsOut)) { UnitConverter converter = unitsIn.getConverterTo(unitsOut); double lowerValue = level.getLevelonevalue(); double upperValue = level.getLeveltwovalue(); @@ -221,7 +222,8 @@ public class PointSetResource extends * com.raytheon.uf.common.style.level.Level exposes units */ Unit unitsOut = result.getMeasure().getUnit(); - if (!unitsIn.equals(unitsOut) && unitsIn.isCompatible(unitsOut)) { + if (unitsIn != null && !unitsIn.equals(unitsOut) + && unitsIn.isCompatible(unitsOut)) { double value = level.getLevelonevalue(); value = unitsIn.getConverterTo(unitsOut).convert(value); result.setValue(value);