Fixed a crashing bug that happened upon converting wylie to tibetan.
This commit is contained in:
parent
0f724989b5
commit
7d768c9e06
1 changed files with 7 additions and 3 deletions
|
@ -323,10 +323,14 @@ public class TibTextUtils implements THDLWylieConstants {
|
|||
isSanskrit = false;
|
||||
}
|
||||
else { //could not convert - throw exception
|
||||
if (start+5 < wylie.length())
|
||||
System.out.println("Bad wylie: "+wylie.substring(start,5)); // FIXME: we're printing to stdout!
|
||||
else
|
||||
// FIXME: we're printing to stdout!
|
||||
if (start+5 <= wylie.length()) {
|
||||
System.out.println("Bad wylie: "
|
||||
+ wylie.substring(start,
|
||||
start + 5));
|
||||
} else {
|
||||
System.out.println("Bad wylie: "+wylie.substring(start));
|
||||
}
|
||||
throw new InvalidWylieException(wylie, start);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue