Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit afdd25d

Browse files
committed
check for null
1 parent a03e651 commit afdd25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/cast_.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ bool compareClassInfo(ClassInfo a, ClassInfo b)
1919
{
2020
if (a is b)
2121
return true;
22-
return a.info.name == b.info.name;
22+
return (a && b) && a.info.name == b.info.name;
2323
}
2424

2525
extern (C):

0 commit comments

Comments
 (0)