You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from 7.2 to 7.4.1, we notice the generation of throw new NullPointerException() for statements that use a field injected by Spring DI.
Commit 3445fa0 shows how the predictNullPointerExceptions feature is introduced. Apparently, predictNullPointerExceptions is set to true when not optimizing aggressively, and is omitted when you do optimize aggressively.
This seems counterintuitive. We don't want aggresive optimization, but these incorrect throw new NullPointerException() statements make our application crash.
Our only way forward now is to don't optimize anything with -dontoptimize? 🤷
The text was updated successfully, but these errors were encountered:
Thank you for your answer. As we have a very large application, this happens in many hundreds of places. This workaround would require a lot of time to implement, and developers would have to think about ProGuard optimization when they write code.
After upgrading from 7.2 to 7.4.1, we notice the generation of
throw new NullPointerException()
for statements that use a field injected by Spring DI.Commit 3445fa0 shows how the
predictNullPointerExceptions
feature is introduced. Apparently,predictNullPointerExceptions
is set to true when not optimizing aggressively, and is omitted when you do optimize aggressively.This seems counterintuitive. We don't want aggresive optimization, but these incorrect
throw new NullPointerException()
statements make our application crash.Our only way forward now is to don't optimize anything with
-dontoptimize
? 🤷The text was updated successfully, but these errors were encountered: