[
http://jira.nuxeo.org/browse/NXP-4067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bogdan Tatar closed NXP-4067.
-----------------------------
> NullPointerException returned by JCR api
> ----------------------------------------
>
> Key: NXP-4067
> URL: http://jira.nuxeo.org/browse/NXP-4067
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Affects Versions: 5.1.6
> Reporter: Bogdan Tatar
> Time Spent: 6 hours
> Remaining Estimate: 0 minutes
>
> A NullPointerException is thrown from JCRDocument when calling method
> getName(). As this method is called by the class method toString() , it is
> better to first test if the internal node is not null in order to avoid
> NullPointerException. This should be done as method toString() is called in
> cases like
> DocumentType type = doc.getType();
> if (type == null) {
> throw new DocumentException("Type not found for doc " + doc);
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets