Buggy code:
final class ObjectFactory { private static final String DEFAULT_PROPERTIES_FILENAME = "xerces.properties" ; private static final boolean DEBUG = false ; private static final int DEFAULT_LINE_LENGTH = 80 ; private static Properties fXercesProperties = null ; private static long fLastModified = - 1 ; static Object createObject ( String factoryId , String fallbackClassName ) throws ObjectFactory . ConfigurationError { } static Object createObject ( String factoryId , String propertiesFilename , String fallbackClassName ) throws ObjectFactory . ConfigurationError { if ( ObjectFactory . DEBUG ) ObjectFactory . debugPrintln ( "debug<seq2seq4repair_space>is<seq2seq4repair_space>on" ) ; ClassLoader cl = ObjectFactory . findClassLoader ( ) ; try { String systemProp = SecuritySupport . getSystemProperty ( factoryId ) ; <START_BUG> if ( systemProp != null ) { <END_BUG> if ( ObjectFactory . DEBUG ) ObjectFactory . debugPrintln ( ( "found<seq2seq4repair_space>system<seq2seq4repair_space>property,<seq2seq4repair_space>value=" + systemProp ) ) ; return ObjectFactory . newInstance ( systemProp , cl , true ) ; } } catch ( SecurityException se ) { } String factoryClassName = null ; if ( propertiesFilename == null ) { File propertiesFile = null ; boolean propertiesFileExists = false ; try { String javah = SecuritySupport . getSystemProperty ( "java.home" ) ; propertiesFilename = ( ( ( javah + ( File . separator ) ) + "lib" ) + ( File . separator ) ) + ( ObjectFactory . DEFAULT_PROPERTIES_FILENAME ) ; propertiesFile = new File ( propertiesFilename ) ; propertiesFileExists = SecuritySupport . getFileExists ( propertiesFile ) ; } catch ( SecurityException e ) { ObjectFactory . fLastModified = - 1 ; ObjectFactory . fXercesProperties = null ; } synchronized ( ObjectFactory . class ) { boolean loadProperties = false ; FileInputStream fis = null ; try { if ( ( ObjectFactory . fLastModified ) >= 0 ) { if ( propertiesFileExists && ( ( ObjectFactory . fLastModified ) < ( ObjectFactory . fLastModified = SecuritySupport . getLastModified ( propertiesFile ) ) ) ) { loadProperties = true ; } else { if ( ! propertiesFileExists ) { ObjectFactory . fLastModified = - 1 ; ObjectFactory . fXercesProperties = null ; } } } else { if ( propertiesFileExists ) { loadProperties = true ; ObjectFactory . fLastModified = SecuritySupport . getLastModified ( propertiesFile ) ; } } if ( loadProperties ) { ObjectFactory . fXercesProperties = new Properties ( ) ; fis = SecuritySupport . getFileInputStream ( propertiesFile ) ; ObjectFactory . fXercesProperties . load ( fis ) ; } } catch ( Exception x ) { ObjectFactory . fXercesProperties = null ; ObjectFactory . fLastModified = - 1 ; } finally { if ( fis != null ) { try { fis . close ( ) ; } catch ( IOException exc ) { } } } } if ( ( ObjectFactory . fXercesProperties ) != null ) { factoryClassName = ObjectFactory . fXercesProperties . getProperty ( factoryId ) ; } } else { FileInputStream fis = null ; try { fis = SecuritySupport . getFileInputStream ( new File ( propertiesFilename ) ) ; Properties props = new Properties ( ) ; props . load ( fis ) ; factoryClassName = props . getProperty ( factoryId ) ; } catch ( Exception x ) { } finally { if ( fis != null ) { try { fis . close ( ) ; } catch ( IOException exc ) { } } } } if ( factoryClassName != null ) { if ( ObjectFactory . DEBUG ) ObjectFactory . debugPrintln ( ( ( ( "found<seq2seq4repair_space>in<seq2seq4repair_space>" + propertiesFilename ) + ",<seq2seq4repair_space>value=" ) + factoryClassName ) ) ; return ObjectFactory . newInstance ( factoryClassName , cl , true ) ; } Object provider = ObjectFactory . findJarServiceProvider ( factoryId ) ; if ( provider != null ) { return provider ; } if ( fallbackClassName == null ) { throw new ObjectFactory . ConfigurationError ( ( ( "Provider<seq2seq4repair_space>for<seq2seq4repair_space>" + factoryId ) + "<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>found" ) , null ) ; } if ( ObjectFactory . DEBUG ) ObjectFactory . debugPrintln ( ( "using<seq2seq4repair_space>fallback,<seq2seq4repair_space>value=" + fallbackClassName ) ) ; return ObjectFactory . newInstance ( fallbackClassName , cl , true ) ; } private static void debugPrintln ( String msg ) { } static ClassLoader findClassLoader ( ) throws ObjectFactory . ConfigurationError { } static Object newInstance ( String className , ClassLoader cl , boolean doFallback ) throws ObjectFactory . ConfigurationError { } static Class findProviderClass ( String className , ClassLoader cl , boolean doFallback ) throws ClassNotFoundException , ObjectFactory . ConfigurationError { } private static Object findJarServiceProvider ( String factoryId ) throws ObjectFactory . ConfigurationError { } static final class ConfigurationError extends Error { static final long serialVersionUID = - 7285495612271660427L ; private Exception exception ; ConfigurationError ( String msg , Exception x ) { } Exception getException ( ) { } } }

Fix:
if ( ( systemProp != null ) && ( ( systemProp . length ( ) ) > 0 ) ) {