schema BUGFIX dereferencing possible NULL pointers
diff --git a/src/parser_yin.c b/src/parser_yin.c
index 8949665..ab73964 100644
--- a/src/parser_yin.c
+++ b/src/parser_yin.c
@@ -3258,6 +3258,7 @@
     struct lysp_stmt *last_subelem = NULL, *new_subelem = NULL;
 
     assert(ctx->xmlctx->status == LYXML_ELEMENT);
+    assert(exts);
 
     LY_ARRAY_NEW_RET(ctx->xmlctx->ctx, *exts, e, LY_EMEM);