Skip to content

Commit 886a346

Browse files
committed
PDFBOX-5660: Sonar fix
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1935096 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9498bbb commit 886a346

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

xmpbox/src/main/java/org/apache/xmpbox/schema/XMPRightsManagementSchema.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ public List<String> getOwners()
127127
*/
128128
public void setMarked(Boolean marked)
129129
{
130-
BooleanType tt = (BooleanType) instanciateSimple(MARKED, marked ? BooleanType.TRUE : BooleanType.FALSE);
130+
BooleanType tt = (BooleanType) instanciateSimple(MARKED,
131+
marked != null && marked ? BooleanType.TRUE : BooleanType.FALSE);
131132
setMarkedProperty(tt);
132133
}
133134

0 commit comments

Comments
 (0)