Fix StmtContext nullness problems
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / submodule / AbstractSubmoduleStatementSupport.java
index df743ed4d22c5ec955b667ec8233c6c2fe4471c6..e248f5a0a65920c75b4f302cada5767f7cd7323c 100644 (file)
@@ -57,7 +57,7 @@ abstract class AbstractSubmoduleStatementSupport
     @Override
     public final void onLinkageDeclared(
             final Mutable<String, SubmoduleStatement, EffectiveStatement<String, SubmoduleStatement>> stmt) {
-        final SourceIdentifier submoduleIdentifier = RevisionSourceIdentifier.create(stmt.getStatementArgument(),
+        final SourceIdentifier submoduleIdentifier = RevisionSourceIdentifier.create(stmt.coerceStatementArgument(),
             StmtContextUtils.getLatestRevision(stmt.declaredSubstatements()));
 
         final StmtContext<?, SubmoduleStatement, EffectiveStatement<String, SubmoduleStatement>>