Skip to content
Snippets Groups Projects
Commit a062e348 authored by tjc's avatar tjc
Browse files

catch NullPointerException clicking outside tree node

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@3806 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 5705be66
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/DatabaseJFrame.java,v 1.5 2005-08-04 15:58:05 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/DatabaseJFrame.java,v 1.6 2005-11-08 20:12:27 tjc Exp $
*/
package uk.ac.sanger.artemis.components;
......@@ -119,10 +119,16 @@ public class DatabaseJFrame extends JFrame
Cursor cbusy = new Cursor(Cursor.WAIT_CURSOR);
Cursor cdone = new Cursor(Cursor.DEFAULT_CURSOR);
String node_name = entry_source.getSelectedNode(tree);
String id = entry_source.getEntryID(node_name);
if(id != null)
getEntryEditFromDatabase(id, entry_source, tree, art_main);
String node_name = null;
try
{
node_name = entry_source.getSelectedNode(tree);
String id = entry_source.getEntryID(node_name);
if(id != null)
getEntryEditFromDatabase(id, entry_source, tree, art_main);
}
catch(NullPointerException npe){}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment