From: Steve M. <Ste...@do...> - 2005-10-20 13:26:00
|
I added the following with the patch so that ImageJA will not spit out = exceptions if no file is selected. =20 =20 OpenDialog od =3D new OpenDialog("Install PlugIn...", = null); String dir =3D od.getDirectory(); String file =3D od.getFileName(); =20 + if(file =3D=3D null) { + // We can't use it if there is no filename + return; + } =20 String className; if(file.endsWith(".java")) =20 Cheers, Steve |