-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid NPEs during regular execution #7482
Conversation
Interesting. I'd try to avoid calling
when the value is |
So essentially we want to send an empty payload? I'm not sure how useful that is. |
IDE can be interested in other info, type for example. The
If it helps, I'd try that instead of suppressing the update completely |
Seeing plenty of ``` java.lang.NullPointerException: Some(Null receiver values are not supported by libraries.) at org.graalvm.truffle/com.oracle.truffle.api.library.LibraryFactory.dispatch(LibraryFactory.java:528) at org.graalvm.truffle/com.oracle.truffle.api.library.LibraryFactory.getUncached(LibraryFactory.java:396) at org.enso.interpreter.runtime.error.WarningsLibraryGen$UncachedDispatch.hasWarnings(WarningsLibraryGen.java:440) at org.enso.interpreter.instrument.job.ProgramExecutionSupport$.sendExpressionUpdate(ProgramExecutionSupport.scala:366) at org.enso.interpreter.instrument.job.ProgramExecutionSupport$.$anonfun$executeProgram$1(ProgramExecutionSupport.scala:62) at org.enso.interpreter.instrument.job.ProgramExecutionSupport$.$anonfun$executeProgram$10(ProgramExecutionSupport.scala:151) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.enso.interpreter.instrument.job.ProgramExecutionSupport$.executeProgram(ProgramExecutionSupport.scala:139) at org.enso.interpreter.instrument.job.ProgramExecutionSupport$.$anonfun$runProgram$3(ProgramExecutionSupport.scala:217) ``` during execution of simple programs. Added a guard to prevent us from sending expression updates when dealing with nulls.
Still want to send an update even if the payload is empty.
a24e18f
to
d84e1bb
Compare
@4e6 @JaroslavTulach updated as requested. |
Pull Request Description
Seeing plenty of
during execution of simple programs.
Added a guard to prevent us from sending expression updates when dealing with nulls.
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.