-
Bug
-
Resolution: Fixed
-
Major
-
2.9.17
-
None
JCREntity.getProperty()
Node nodeLanguage = getLanguageNode(language); if (nodeLanguage.hasProperty(propertyName)) { return nodeLanguage.getProperty(propertyName); }
If the content doesn't have a language node, getLanguageNode() returns null and a NPE is thrown on the next line. The nullity of nodeLanguage should be tested before calling hasProperty() on it.
[CMS-678] Plugin ODF: possible NPE when no language node
Workflow | Original: jira [ 11883 ] | New: Ametys [ 13912 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Project Import | New: Thu May 28 17:09:53 UTC 2009 [ 1243530593866 ] |
Fix Version/s | New: 2.9.20 [ 11906 ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Reopened [ 4 ] | New: Resolved [ 5 ] |
Resolution | Original: Fixed [ 1 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
syncNode can be null -> the getProperty() call on the last line will crash.