This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> Full Name: Wang zongmin > Email Address: address@hidden > Organization: Hebei bureau of meteorology > Package Version: 3.0u2 build date:2012-02-10 17:21 UTC > Operating System: Windows XP > Hardware: Java: home: C:\Program Files\IDV_3.0u2\jre version: 1.6.0_20 > j3d:1.5.2 fcs (build4) > Description of problem: > > Making the widget component > java.lang.NullPointerException > > > When I use noUnit(filed) functions, there is a error. > Hi Zongmin, The noUnit function should be ok, it is likely a user error here. Let me know how you use this function, I maybe able to identify the problem. Yuan > ****************** > Stack trace: > java.lang.NullPointerException > at > ucar.unidata.idv.control.GridDisplayControl.getDataRangeInColorUnits(GridDisplayControl.java:264) > at > ucar.unidata.idv.control.GridDisplayControl.getInitialRange(GridDisplayControl.java:233) > at > ucar.unidata.idv.control.DisplayControlImpl.getRange(DisplayControlImpl.java:9943) > at > ucar.unidata.idv.control.DisplayControlImpl.getRangeForColorTable(DisplayControlImpl.java:9971) > at > ucar.unidata.idv.control.DisplayControlImpl.getControlWidgets(DisplayControlImpl.java:7537) > at > ucar.unidata.idv.control.PlanViewControl.getControlWidgets(PlanViewControl.java:1527) > at > ucar.unidata.idv.control.ContourPlanViewControl.getControlWidgets(ContourPlanViewControl.java:218) > at > ucar.unidata.idv.control.DisplayControlImpl.doMakeWidgetComponent(DisplayControlImpl.java:7432) > at > ucar.unidata.idv.control.PlanViewControl.doMakeContents(PlanViewControl.java:1482) > at > ucar.unidata.idv.control.DisplayControlImpl.doMakeWindow(DisplayControlImpl.java:4219) > at > ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1122) > at ucar.unidata.idv.ControlDescriptor.initControl(ControlDescriptor.java:986) > at ucar.unidata.idv.ControlDescriptor$1.run(ControlDescriptor.java:911) > at ucar.unidata.util.Misc$3.run(Misc.java:1090) > > > Ticket Details =================== Ticket ID: VBX-144081 Department: Support IDV Priority: Normal Status: Closed