Closed Bananeweizen closed 1 month ago
Hi @Bananeweizen I had to reproduce the problem manually as a number of code scenarios weren't generating the conditions necessary. I have created a fix that handles the situation of the initializer being null. If you find the scenario, please add it here and I will add it as a regression test.
In 2024-06 the unused code cleanup has been enhanced to also do "join variable declaration": https://eclipse.dev/eclipse/news/4.32/jdt.php#combine-decl-and-assignment That new part of the cleanup causes NPEs on my projects (the cleanup itself has been enabled as cleanup action since years, so it definitely did not cause NPEs before). An example stack trace is:
I'm still trying to create a small reproducer.