allow bad properties parsing

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143758 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-07 11:04:59 +00:00
parent 4abb3c6e51
commit 2dc223b9e9

View File

@ -57,9 +57,13 @@ public abstract class PropertyNode<T extends PropertyNode<T>> implements Compar
_cpStart = 0; _cpStart = 0;
} }
if ( fcStart > fcEnd ) if ( _cpEnd < _cpStart )
throw new IllegalArgumentException( "fcStart (" + fcStart {
+ ") > fcEnd (" + fcEnd + ")" ); _logger.log( POILogger.WARN, "A property claimed to end (" + _cpEnd
+ ") before start! "
+ "Resetting end to start, and hoping for the best" );
_cpEnd = _cpStart;
}
} }
/** /**