summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/classes/share/com/sun/j3d/loaders/objectfile/ObjectFileParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classes/share/com/sun/j3d/loaders/objectfile/ObjectFileParser.java b/src/classes/share/com/sun/j3d/loaders/objectfile/ObjectFileParser.java
index bc44d7c..4209ff1 100644
--- a/src/classes/share/com/sun/j3d/loaders/objectfile/ObjectFileParser.java
+++ b/src/classes/share/com/sun/j3d/loaders/objectfile/ObjectFileParser.java
@@ -141,7 +141,7 @@ class ObjectFileParser extends StreamTokenizer {
* We're already at the end of a line
*/
void skipToNextLine() throws ParsingErrorException {
- while (ttype != TT_EOL) {
+ while (ttype != TT_EOL && ttype != -1 /* issue 587*/) {
getToken();
}
} // end of skipToNextLine