More robust--handles the case when tibwn.ini cannot be found.
This commit is contained in:
parent
3006b120dc
commit
859a7731fb
1 changed files with 4 additions and 0 deletions
|
@ -277,6 +277,10 @@ public class TibetanMachineWeb {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
URL url = TibetanMachineWeb.class.getResource(fileName);
|
URL url = TibetanMachineWeb.class.getResource(fileName);
|
||||||
|
if (url == null) {
|
||||||
|
System.err.println("Cannot find " + fileName + "; aborting.");
|
||||||
|
System.exit(1);
|
||||||
|
}
|
||||||
InputStreamReader isr = new InputStreamReader(url.openStream());
|
InputStreamReader isr = new InputStreamReader(url.openStream());
|
||||||
BufferedReader in = new BufferedReader(isr);
|
BufferedReader in = new BufferedReader(isr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue