Skip to content

Instantly share code, notes, and snippets.

@Egorand
Created January 20, 2020 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Egorand/22b736324c1f9120bf95f3263c5b35f0 to your computer and use it in GitHub Desktop.
Save Egorand/22b736324c1f9120bf95f3263c5b35f0 to your computer and use it in GitHub Desktop.
// Test.java
public class Test {
public String foo() {
return null;
}
}
// Main.kt
fun main() {
print(Test().foo().toString())
}
// output
Exception in thread "main" java.lang.NullPointerException
at MainKt.main(Main.kt:2)
at MainKt.main(Main.kt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment