Buggy code:
private final String SPECULAR_COEFFICIENT = "Ns" ; private final String ALPHA_1 = "d" ; private final String ALPHA_2 = "Tr" ; private final String AMBIENT_TEXTURE = "map_Ka" ; private final String DIFFUSE_TEXTURE = "map_Kd" ; private final String SPECULAR_COLOR_TEXTURE = "map_Ks" ; private final String SPECULAR_HIGHLIGHT_TEXTURE = "map_Ns" ; private final String ALPHA_TEXTURE_1 = "map_d" ; private final String ALPHA_TEXTURE_2 = "map_Tr" ; private final String BUMP_TEXTURE = "map_Bump" ; private Stack < MaterialDef > mMaterials ; private String mResourcePackage ; public MaterialLib ( ) { } public void parse ( String materialLibPath , String resourceType , String resourcePackage ) { } public void setMaterial ( Object3D object , String materialName ) throws TextureException { if ( materialName == null ) { RajLog . i ( ( ( object . getName ( ) ) + "<seq2seq4repair_space>has<seq2seq4repair_space>no<seq2seq4repair_space>material<seq2seq4repair_space>definition." ) ) ; return ; } MaterialDef matDef = null ; for ( int i = 0 ; i < ( mMaterials . size ( ) ) ; ++ i ) { if ( mMaterials . get ( i ) . name . equals ( materialName ) ) { matDef = mMaterials . get ( i ) ; break ; } } boolean hasTexture = ( matDef != null ) && ( ( matDef . diffuseTexture ) != null ) ; boolean hasBump = ( matDef != null ) && ( ( matDef . bumpTexture ) != null ) ; boolean hasSpecularTexture = ( matDef != null ) && ( ( matDef . specularColorTexture ) != null ) ; boolean hasSpecular = ( ( matDef != null ) && ( ( matDef . specularColor ) > - 16777216 ) ) && ( ( matDef . specularCoefficient ) > 0 ) ; Material mat = new Material ( ) ; mat . enableLighting ( true ) ; mat . setDiffuseMethod ( new DiffuseMethod . Lambert ( ) ) ; if ( matDef != null ) { int alpha = ( ( int ) ( ( matDef . alpha ) * 255.0F ) ) ; mat . setColor ( ( ( ( alpha << 24 ) & - 16777216 ) | ( ( matDef . diffuseColor ) & 16777215 ) ) ) ; } else { mat . setColor ( ( ( int ) ( ( Math . random ( ) ) * 16777215 ) ) ) ; } if ( hasSpecular || hasSpecularTexture ) { SpecularMethod . Phong method = new SpecularMethod . Phong ( ) ; method . setSpecularColor ( matDef . specularColor ) ; method . setShininess ( matDef . specularCoefficient ) ; } if ( hasTexture ) { if ( ( mFile ) == null ) { final String fileNameWithoutExtension = getFileNameWithoutExtension ( matDef . diffuseTexture ) ; int id = mResources . getIdentifier ( fileNameWithoutExtension , "drawable" , mResourcePackage ) ; int etc1Id = mResources . getIdentifier ( fileNameWithoutExtension , "raw" , mResourcePackage ) ; if ( etc1Id != 0 ) { mat . addTexture ( new Texture ( ( ( object . getName ( ) ) + fileNameWithoutExtension ) , new Etc1Texture ( ( ( object . getName ( ) ) + etc1Id ) , etc1Id , ( id != 0 ? BitmapFactory . decodeResource ( mResources , id ) : null ) ) ) ) ; } else if ( id != 0 ) { mat . addTexture ( new Texture ( ( ( object . getName ( ) ) + fileNameWithoutExtension ) , id ) ) ; } } else { String filePath = ( ( mFile . getParent ( ) ) + ( File . separatorChar ) ) + ( getOnlyFileName ( matDef . diffuseTexture ) ) ; if ( filePath . endsWith ( ".pkm" ) ) { FileInputStream fis = null ; try { fis = new FileInputStream ( filePath ) ; mat . addTexture ( new Texture ( getOnlyFileName ( matDef . diffuseTexture ) , new Etc1Texture ( ( ( getOnlyFileName ( matDef . diffuseTexture ) ) + "etc1" ) , fis , null ) ) ) ; } catch ( FileNotFoundException e ) { <START_BUG> RajLog . e ( "LoaderOBJ" , "File<seq2seq4repair_space>decode<seq2seq4repair_space>error" , e ) ; <END_BUG> } finally { try { fis . close ( ) ; } catch ( IOException e ) { } } } else { mat . addTexture ( new Texture ( getOnlyFileName ( matDef . diffuseTexture ) , BitmapFactory . decodeFile ( filePath ) ) ) ; } } mat . setColorInfluence ( 0 ) ; } if ( hasBump ) { if ( ( mFile ) == null ) { int identifier = mResources . getIdentifier ( getFileNameWithoutExtension ( matDef . bumpTexture ) , "drawable" , mResourcePackage ) ; mat . addTexture ( new NormalMapTexture ( ( ( object . getName ( ) ) + identifier ) , identifier ) ) ; } else { String filePath = ( ( mFile . getParent ( ) ) + ( File . separatorChar ) ) + ( getOnlyFileName ( matDef . bumpTexture ) ) ; mat . addTexture ( new NormalMapTexture ( getOnlyFileName ( matDef . bumpTexture ) , BitmapFactory . decodeFile ( filePath ) ) ) ; } } if ( hasSpecularTexture ) { if ( ( mFile ) == null ) { int identifier = mResources . getIdentifier ( getFileNameWithoutExtension ( matDef . specularColorTexture ) , "drawable" , mResourcePackage ) ; mat . addTexture ( new SpecularMapTexture ( ( ( object . getName ( ) ) + identifier ) , identifier ) ) ; } else { String filePath = ( ( mFile . getParent ( ) ) + ( File . separatorChar ) ) + ( getOnlyFileName ( matDef . specularColorTexture ) ) ; mat . addTexture ( new SpecularMapTexture ( getOnlyFileName ( matDef . specularColorTexture ) , BitmapFactory . decodeFile ( filePath ) ) ) ; } } object . setMaterial ( mat ) ;

Fix:
RajLog . e ( "LoaderOBJ" , "File<seq2seq4repair_space>decode<seq2seq4repair_space>error" ) ;