Skip to content

Commit afcbd35

Browse files
authored
Merge pull request #84958 from xymus/deser-witness
Serialization: Fix null dereference in witness deserialization
2 parents 00e272d + 1db5ad0 commit afcbd35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Serialization/Deserialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9146,7 +9146,7 @@ void ModuleFile::finishNormalConformance(NormalProtocolConformance *conformance,
91469146

91479147
// Determine whether we need to enter the actor isolation of the witness.
91489148
std::optional<ActorIsolation> enterIsolation;
9149-
if (*rawIDIter++) {
9149+
if (*rawIDIter++ && witness) {
91509150
enterIsolation = getActorIsolation(witness);
91519151
}
91529152

0 commit comments

Comments
 (0)