Skip to content

Commit 658631f

Browse files
committed
PDFBOX-6121: avoid ClassCastException elsewhere
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1930495 13f79535-47bb-0310-9956-ffa450edef68
1 parent d053411 commit 658631f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ public DateType getDateCreatedProperty()
298298

299299
public String getDateCreated()
300300
{
301-
TextType tt = ((TextType) getProperty(DATE_CREATED)); //TODO cast looks highly suspicious
302-
return tt == null ? null : tt.getStringValue();
301+
DateType dt = getDateCreatedProperty();
302+
return dt == null ? null : dt.getStringValue();
303303
}
304304

305305
public void setDateCreated(String text)

0 commit comments

Comments
 (0)