Kaydet (Commit) d7350545 authored tarafından Matúš Kukan's avatar Matúš Kukan

Better to throw than crash, if token handler is not set.

Change-Id: If6b2d39b487b5f673d5b6b2945a6e7d08777594e
üst 1ef77807
...@@ -781,6 +781,9 @@ void FastSaxParserImpl::parseStream(const InputSource& maStructSource) ...@@ -781,6 +781,9 @@ void FastSaxParserImpl::parseStream(const InputSource& maStructSource)
Entity entity( maData ); Entity entity( maData );
entity.maStructSource = maStructSource; entity.maStructSource = maStructSource;
if( !entity.mxTokenHandler.is() )
throw SAXException("No token handler, use setTokenHandler()", Reference< XInterface >(), Any() );
if( !entity.maStructSource.aInputStream.is() ) if( !entity.maStructSource.aInputStream.is() )
throw SAXException("No input source", Reference< XInterface >(), Any() ); throw SAXException("No input source", Reference< XInterface >(), Any() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment