From: Kevin D. <kev...@us...> - 2010-07-24 22:01:51
|
Update of /cvsroot/jmri/jmri/jmrix/loconet/pr2 In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv10301/pr2 Modified Files: PR2Adapter.java Log Message: Catch NPE. Index: PR2Adapter.java =================================================================== RCS file: /cvsroot/jmri/jmri/jmrix/loconet/pr2/PR2Adapter.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** PR2Adapter.java 19 Mar 2010 17:39:28 -0000 1.14 --- PR2Adapter.java 24 Jul 2010 22:01:43 -0000 1.15 *************** *** 119,123 **** public void dispose(){ ! adaptermemo.dispose(); adaptermemo = null; } --- 119,124 ---- public void dispose(){ ! if (adaptermemo!=null) ! adaptermemo.dispose(); adaptermemo = null; } |