From 77acd6a439dbea92ec829643ef3f9597a15072fc Mon Sep 17 00:00:00 2001 From: Ken Mc Neill Date: Mon, 21 Dec 2009 13:55:47 +0000 Subject: j3dutils: cherry-pick fix from svn trunk issue 587 Issue number: 587 Obtained from: Submitted by: mcneillk Reviewed by: git-svn-id: https://svn.java.net/svn/j3d-core-utils~svn/trunk@199 9497e636-51bd-65ba-982d-a4982e1767a5 Signed-off-by: Harvey Harrison --- src/classes/share/com/sun/j3d/loaders/objectfile/ObjectFileParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/classes/share/com/sun/j3d') 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 -- cgit v1.2.3