Fixed some tag reading errors in #1833.

This commit is contained in:
Jindra Petřík
2024-09-28 19:55:20 +02:00
parent eeb1242992
commit 3a702a21d7
2 changed files with 4 additions and 1 deletions

View File

@@ -1440,7 +1440,7 @@ public class SWFInputStream implements AutoCloseable {
boolean doParse = true;
if (((parseTags && !parallel1 && doParse) || (tag.getId() == ExporterInfo.ID)) && (tag instanceof TagStub)) {
if (((parseTags && !parallel1 && doParse) || (tag != null && tag.getId() == ExporterInfo.ID)) && (tag instanceof TagStub)) {
tag = resolveTag((TagStub) tag, level, parallel, skipUnusualTags, lazy, true);
}
if (tag instanceof ExporterInfo) {