NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

null scalary type in ScalarMap

Hello,

I am trying to construct a ScalarMap with a null value as one or both of the 
parameters passed in to ScalarMap(ScalarType scalar, DisplayRealType 
display_scalar). I tried commenting out the following code in the ScalarMap 
constructor:

   /*
    if (scalar == null && needNonNullScalar) {
      throw new DisplayException("ScalarMap: scalar is null");
    }
    if (display_scalar == null) {
      throw new DisplayException("ScalarMap: display_scalar is null");
    }
*/

However, I will get a null pointer later in that constructor if "scalar" or 
"display_scalar" are passed in as null. Is there a way to wrap a null value for 
"display_scalar" or "scalar" before it is passed in to create a ScalarMap? 

Thanks,
Michelle

Michelle Kam           (408) 742-2881
Lockheed Martin Space Systems Co. SSM/ATC/MSIS
B/153 O/L922 
1111 Lockheed Martin Way, Sunnyvale, CA 94089




  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: