You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "SourceForge.net" <no...@sourceforge.net> on 2003/10/07 08:46:13 UTC

[juddi-Developers] [ juddi-Bugs-819073 ] FindServiceByNameQuery: no names causes NullPointerException

Bugs item #819073, was opened at 2003-10-07 00:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=434422&aid=819073&group_id=42875

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: FindServiceByNameQuery: no names causes NullPointerException

Initial Comment:
In the appendWhere() method of the 
FindServiceByNameQuery class, the parameter "names" 
is referenced without being checked for null:

    int nameSize = names.size();
    if (nameSize > 0)
    {
     ...
    }

However, the "names" parameter can legally be null. An 
extra test can fix this:

    if (names != null) {
      int nameSize = names.size();
      if (nameSize > 0)
      {
       ...
      }
    }

Marcel


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=434422&aid=819073&group_id=42875