Skip to content

Commit 1db0cdf

Browse files
authored
fix null ptr in some gjs files
1 parent 2561971 commit 1db0cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/emberjs/utils/EmberUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class EmberUtils {
269269
if (cls != null) {
270270
return cls
271271
}
272-
cls = inJs?.prevSibling?.children?.last() as? TypeScriptVariable
272+
cls = inJs?.prevSibling?.children?.lastOrNull() as? TypeScriptVariable
273273
if (cls != null) {
274274
return cls
275275
}

0 commit comments

Comments
 (0)