Changeset 3518


Ignore:
Timestamp:
2002-11-07T03:33:25+13:00 (19 years ago)
Author:
cs025
Message:

Added proper handling of Booleans in getMetadata

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/service/NzdlQuery.java

    r3097 r3518  
    291291     */
    292292    public boolean getMetadata()
    293     {   return ((String)m_Options.get("Metadata") == "true");
     293    {   
     294    if (m_Options.get("Metadata") == null) return false;
     295    return ((Boolean) m_Options.get("Metadata")).booleanValue();
    294296    }
    295297
Note: See TracChangeset for help on using the changeset viewer.