openamf/src/java/org/openamf/util OpenAMFUtils.java,1.2,1.3

[email protected]
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf/util
In directory sc8-pr-cvs1:/tmp/cvs-serv7250/src/java/org/openamf/util

Modified Files:
	OpenAMFUtils.java 
Log Message:
fixed bug with null parameters

Index: OpenAMFUtils.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/util/OpenAMFUtils.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** OpenAMFUtils.java	15 Jul 2003 22:10:54 -0000	1.2
--- OpenAMFUtils.java	16 Jul 2003 17:10:37 -0000	1.3
***************
*** 72,76 ****
  
  		log.debug("expected class: " + parameterType.getName());
! 		log.debug("parameter class: " + parameter.getClass().getName());
  
  		boolean typesMatch = parameterType.isInstance(parameter);
--- 72,80 ----
  
  		log.debug("expected class: " + parameterType.getName());
! 		if (parameter == null) {
! 			log.debug("parameter is null");
! 		} else {
! 			log.debug("parameter class: " + parameter.getClass().getName());
! 		}
  
  		boolean typesMatch = parameterType.isInstance(parameter);




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.