[rcpilot-cvs] src/rcpilot/common Functions.java,1.1,1.2
Status: Beta
Brought to you by:
mjpawlowsky
|
From: <mjp...@us...> - 2004-03-12 17:36:22
|
Update of /cvsroot/rcpilot/src/rcpilot/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31964 Modified Files: Functions.java Log Message: look for null byte[] Index: Functions.java =================================================================== RCS file: /cvsroot/rcpilot/src/rcpilot/common/Functions.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Functions.java 4 Mar 2004 11:45:39 -0000 1.1 --- Functions.java 12 Mar 2004 17:08:48 -0000 1.2 *************** *** 59,63 **** public static void printhex(byte[]ba) { ! printhex(ba,0,ba.length); } --- 59,67 ---- public static void printhex(byte[]ba) { ! if (ba != null){ ! printhex(ba,0,ba.length); ! } else { ! println("null"); ! } } *************** *** 70,74 **** public static void printhex(byte[]ba, int ofs, int len) { ! println(atohex(ba,ofs,len)); } --- 74,82 ---- public static void printhex(byte[]ba, int ofs, int len) { ! if (ba != null){ ! println(atohex(ba,ofs,len)); ! } else { ! println("null"); ! } } |