openamf/src/java/org/openamf/invoker RankedMethod.java,1.21,1.22
Sean Sullivan <[email protected]> Tue, 03 Aug 2004 13:50:32 +0000
| Newsgroups | gmane.comp.java.openamf.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openamf/openamf/src/java/org/openamf/invoker
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23422/src/java/org/openamf/invoker
Modified Files:
RankedMethod.java
Log Message:
improved reporting for NullPointerException
Index: RankedMethod.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/invoker/RankedMethod.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** RankedMethod.java 20 Mar 2004 08:30:08 -0000 1.21
--- RankedMethod.java 3 Aug 2004 13:50:30 -0000 1.22
***************
*** 57,60 ****
--- 57,72 ----
IllegalAccessException,
InvocationTargetException {
+
+ if (method == null)
+ {
+ throw new NullPointerException("method is null, service="
+ + String.valueOf(service));
+ }
+ else if (parameters == null)
+ {
+ throw new NullPointerException("parameters is null, service="
+ + String.valueOf(service));
+ }
+
return method.invoke(service, parameters.toArray());
}
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com