Null reference fails to decompile
See original GitHub issueCompiling and decompiling this simple code leads to a NPE. (version 0.149)
public enum CrashEnum {
SAMPLE;
public CrashEnum[] cloneValues() {
return ((CrashEnum[]) null).clone();
}
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Error decompiling method. System.NullReferenceException ...
Steps to reproduce Open the assembly Rewired_Core.zip in ILSpy Try and decompile the class Rewired.Data.UserData Error message shown Error ...
Read more >Decompiled Sources only show "throw null" for every .NET ...
For me, every class is like this. If I'm looking in the wrong location (the reference), how can I make Visual studio look...
Read more >Decompile source to symbol file fails
Hi Team, I am encountering the below error when I try 'Decompile Source to Symbol File' (from Modules window) for the code deployed...
Read more >Decompile .NET code while debugging - Visual Studio ...
This is due to a sequence point null-reference error in ILSpy. We have mitigated the failure by catching these issues and gracefully failing...
Read more >How to handle null reference exception in my code?
Simply execute it under debugger, it will stop the execution where the exception is thrown. Put a break point on that line, restart...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Conversion.toBytecode0(dummy)
produces an empty class file in bytes. But it doesn’t matter, as it is not the cause of the problem. Here’s how to reproduce the NPE:Don’t forget to place the class file in the same directory!
I now remember why i used a dummy class instead of just throwing an FNF exception. CFR creates very long comments at the top of the decompiled class file like
They are pretty annoying on huge class files, and I’m not sure if there is a way to disable them.