diff --git a/src/main/java/w2phtml/rdf/DocumentPart.java b/src/main/java/w2phtml/rdf/DocumentPart.java
index 66cea52..e9fc3de 100644
--- a/src/main/java/w2phtml/rdf/DocumentPart.java
+++ b/src/main/java/w2phtml/rdf/DocumentPart.java
@@ -118,7 +118,7 @@ public class DocumentPart {
return false;
}
public String getName() {
- if (metadata != null) {
+ if (metadata != null && order != null) {
String nameFromMeta = metadata.getFirstValue(order,DC_TITLE);
if (!nameFromMeta.isEmpty()) {
return nameFromMeta;