Skip to content

Commit 0fbdf27

Browse files
Fix a null object reference that happens when a class isn't imported
1 parent 27d8184 commit 0fbdf27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polymod/hscript/_internal/PolymodInterpEx.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ class PolymodInterpEx extends Interp
859859
if (!imports.exists(superClassPath)) {
860860
switch (extend) {
861861
case CTPath(path, params):
862-
if (params.length > 0) {
862+
if (params != null && params.length > 0) {
863863
errorEx(EClassUnresolvedSuperclass(superClassPath, 'do not include type parameters in super class name'));
864864
}
865865
default:

0 commit comments

Comments
 (0)