You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Alex Milowski (JIRA)" <xe...@xml.apache.org> on 2005/06/14 02:30:46 UTC
[jira] Created: (XERCESJ-1084) Null pointer thrown when PARSER_SETTINGS is false for XMLSchemaValidator
Null pointer thrown when PARSER_SETTINGS is false for XMLSchemaValidator
------------------------------------------------------------------------
Key: XERCESJ-1084
URL: http://issues.apache.org/jira/browse/XERCESJ-1084
Project: Xerces2-J
Type: Bug
Reporter: Alex Milowski
Attachments: XMLSchemaValidator.java.diff
A null pointer exception is thrown when the PARSER_SETTINGS feature is false. On line
1279, inside the reset() method, when the parser_setting local is false, the code uses the fValidationManager
member. That member is not set till later.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Updated: (XERCESJ-1084) Null pointer thrown when PARSER_SETTINGS is false for XMLSchemaValidator
Posted by "Alex Milowski (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1084?page=all ]
Alex Milowski updated XERCESJ-1084:
-----------------------------------
Attachment: XMLSchemaValidator.java.diff
Here is a diff that moves the initialization up to before the member is used.
> Null pointer thrown when PARSER_SETTINGS is false for XMLSchemaValidator
> ------------------------------------------------------------------------
>
> Key: XERCESJ-1084
> URL: http://issues.apache.org/jira/browse/XERCESJ-1084
> Project: Xerces2-J
> Type: Bug
> Reporter: Alex Milowski
> Attachments: XMLSchemaValidator.java.diff
>
> A null pointer exception is thrown when the PARSER_SETTINGS feature is false. On line
> 1279, inside the reset() method, when the parser_setting local is false, the code uses the fValidationManager
> member. That member is not set till later.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Resolved: (XERCESJ-1084) Null pointer thrown when PARSER_SETTINGS is false for XMLSchemaValidator
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1084?page=all ]
Michael Glavassevich resolved XERCESJ-1084:
-------------------------------------------
Resolution: Invalid
If the component manager is working correctly this condition can never happen. The very first time a component is reset the value of PARSER_SETTINGS should be true. This is an internal feature that components read which indicates whether the configuration has changed between resets, allowing them to avoid reading features and properties from the configuration which they already have.
> Null pointer thrown when PARSER_SETTINGS is false for XMLSchemaValidator
> ------------------------------------------------------------------------
>
> Key: XERCESJ-1084
> URL: http://issues.apache.org/jira/browse/XERCESJ-1084
> Project: Xerces2-J
> Type: Bug
> Reporter: Alex Milowski
> Attachments: XMLSchemaValidator.java.diff
>
> A null pointer exception is thrown when the PARSER_SETTINGS feature is false. On line
> 1279, inside the reset() method, when the parser_setting local is false, the code uses the fValidationManager
> member. That member is not set till later.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org