Buggy code:
public void processingInstruction ( String target , XMLString data , Augmentations augs ) throws XNIException { } public void startElement ( QName element , XMLAttributes attributes , Augmentations augs ) throws XNIException { } public void emptyElement ( QName element , XMLAttributes attributes , Augmentations augs ) throws XNIException { } public void characters ( XMLString text , Augmentations augs ) throws XNIException { } public void ignorableWhitespace ( XMLString text , Augmentations augs ) throws XNIException { } public void endElement ( QName element , Augmentations augs ) throws XNIException { } public void startCDATA ( Augmentations augs ) throws XNIException { } public void endCDATA ( Augmentations augs ) throws XNIException { } public void endDocument ( Augmentations augs ) throws XNIException { } public void endGeneralEntity ( String name , Augmentations augs ) throws XNIException { } private void processAttributes ( XMLAttributes attributes ) { } private void processNamespaceAttributes ( XMLAttributes attributes ) { } private void processInScopeNamespaces ( ) { } private void processPSVIStartElement ( Augmentations augs ) { } private void processPSVIEndElement ( Augmentations augs ) { } private void processPSVIAttribute ( Augmentations augs ) { } private void processPSVISchemaErrorCode ( StringList errorCodes ) { } private void processPSVISchemaInformation ( ElementPSVI elemPSVI ) { } private void processPSVINamespaceItem ( XSNamespaceItem item ) { } private void processPSVISchemaDocuments ( XSNamespaceItem item ) { } private void processPSVISchemaComponents ( XSNamespaceItem item ) { } private void processPSVITypeDefinition ( XSTypeDefinition type ) { } private void processPSVIComplexTypeDefinition ( XSComplexTypeDefinition type ) { } private void processPSVISimpleTypeDefinition ( XSSimpleTypeDefinition type ) { } private void processPSVIFacets ( XSSimpleTypeDefinition type ) { } private void processPSVIMemberTypeDefinitions ( XSObjectList memTypes ) { } private void processPSVIAnnotations ( XSObjectList annotations ) { } private void processPSVISchemaAnnotations ( XSObjectList annotations ) { } private void processPSVIAttributeUses ( XSObjectList uses ) { } private void processPSVIAttributeWildcard ( XSWildcard wildcard ) { } private void processPSVIWildcard ( XSWildcard wildcard ) { } private void processPSVIAnnotation ( XSAnnotation ann ) { } private void processDOMElement ( Node node , String elementName , String tagName ) { } private void processDOMAttributes ( Element elem ) { } private void processPSVIElementDeclaration ( XSElementDeclaration elem ) { } private void processPSVIAttributeDeclaration ( XSAttributeDeclaration attr ) { } private void processPSVIAttributeGroupDefinition ( XSAttributeGroupDefinition ag ) { } private void processPSVIModelGroupDefinition ( XSModelGroupDefinition mgd ) { } private void processPSVIModelGroup ( XSModelGroup mg ) { } private void processPSVINotationDeclaration ( XSNotationDeclaration not ) { } private void processPSVIIdentityConstraintDefinitions ( XSNamedMap constraints ) { } private void processPSVIFields ( StringList fields ) { } private void processPSVIXPath ( String path ) { } private void processPSVIParticles ( XSObjectList particles ) { } private void processPSVIParticle ( XSParticle part ) { } private void processPSVIElementRef ( String elementName , XSObject obj ) { } private void processPSVIElementRef ( String elementName , Vector attributes , XSObject obj ) { } private void processPSVIAttributeDeclarationOrRef ( XSAttributeDeclaration att ) { } private void processPSVIAttributeDeclarationRef ( XSAttributeDeclaration att ) { } private void processPSVITypeDefinitionRef ( String enclose , XSTypeDefinition type ) { } private void processPSVITypeDefinitionOrRef ( String enclose , XSTypeDefinition type ) { } private void processPSVIElementDeclarationRef ( XSElementDeclaration elem ) { } private void processPSVIElementDeclarationOrRef ( XSElementDeclaration elem ) { } private void processPSVIScope ( String enclose , XSComplexTypeDefinition enclosingCTD , short scope ) { } private void processPSVIValueConstraint ( short constraintType , String constraintValue ) { } private void processPSVISubstitutionGroupAffiliation ( XSElementDeclaration elem ) { } private void sendEmptyElementEvent ( String tagname ) { } private void sendEmptyElementEvent ( String tagname , Vector attributes ) { } private void sendStartElementEvent ( String tagname , Vector attributes ) { } private void sendEndElementEvent ( String tagname ) { } private void sendIndentedElement ( String tagName ) { } private void sendIndentedElement ( String tagName , Vector attributes ) { } private void sendUnIndentedElement ( String tagName ) { } private void sendElementEvent ( String elementName ) { } private void sendElementEvent ( String elementName , String elementValue ) { } private void sendElementEvent ( String elementName , XMLString elementValue ) { } private void sendElementEvent ( String elementName , Vector attributes , String elementValue ) { } private void sendElementEvent ( String elementName , Vector attributes , XMLString elementValue ) { <START_BUG> if ( ( elementValue == null ) || ( elementValue . equals ( "" ) ) ) { <END_BUG> if ( attributes == null ) { attributes = new Vector ( ) ; } attributes . add ( "xsi:nil" ) ; attributes . add ( "true" ) ; attributes . add ( fCDATASymbol ) ; this . sendEmptyElementEvent ( elementName , attributes ) ; } else { this . sendIndent ( ) ; this . sendStartElementEvent ( elementName , attributes ) ; fDocumentHandler . characters ( elementValue , null ) ; this . sendEndElementEvent ( elementName ) ; this . sendNewLine ( ) ; } } private void sendIndentedElementWithID ( String elementName , XSObject obj ) { } private void sendIndent ( ) { } private void sendNewLine ( ) { } private QName createQName ( String rawname ) { } private XMLAttributes createAttributes ( Vector atts ) { } private String createID ( XSObject obj ) { } private String getID ( XSObject obj ) { } private String translateType ( short type ) { } private String translateFacetKind ( short kind ) { } private String translateVariety ( short var ) { } private String translateConstraintType ( short type ) { } private String translateValueConstraintType ( short type ) { } private String translateBlockOrFinal ( short val ) { } private String translateScope ( short scope ) { } private String translateCompositor ( short comp ) { } private String translateContentType ( short contentType ) { } private String translateProcessContents ( short process ) { } private String translateDerivation ( short deriv ) { } private String translateCategory ( short cat ) { }

Fix:
if ( ( elementValue == null ) || ( ( elementValue . length ) == 0 ) ) {