Make ConstraintMetaDefition attributes Optional
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / effective / type / PatternEffectiveStatementImpl.java
index df6331fedc4804c8d943a03c988c03e79e9dfe48..8cfbbba08b4dbe573d478423a5a3b90983920821 100644 (file)
@@ -24,6 +24,7 @@ public class PatternEffectiveStatementImpl extends
         }
 
         return new PatternConstraintEffectiveImpl(argument.getRegularExpression(), argument.getRawRegularExpression(),
-            getDescription(), getReference(), getErrorAppTag(), getErrorMessage(), getModifier());
+            getDescription(), getReference(), getErrorAppTag().orElse(null), getErrorMessage().orElse(null),
+            getModifier());
     }
 }