This was dying with a NullPointerException when you started it up using

'ant tt-run' with no dictionary.  Now it starts up and shows you a nice
error message, "Dictionary could not be loaded!", instead.
This commit is contained in:
dchandler 2003-07-26 00:53:59 +00:00
parent e198519c5f
commit 2bb499e5a7

View file

@ -70,7 +70,7 @@ public abstract class ScannerPanel extends Panel implements ActionListener
}
catch (Exception e)
{
status.setText("Dictionary could no be loaded!");
status.setText("Dictionary could not be loaded!");
exito=false;
}
add(panel1, BorderLayout.NORTH);
@ -88,6 +88,7 @@ public abstract class ScannerPanel extends Panel implements ActionListener
{
int rows, n;
if (null == scanner) return null;
String dictionaries[] = scanner.getDictionaryDescriptions();
if (dictionaries!=null)
{