ConfuserExPlugins icon indicating copy to clipboard operation
ConfuserExPlugins copied to clipboard

System.NullReferenceException

Open ghost opened this issue 7 years ago • 5 comments

when encrypting my executable with just typescrambler it crashes with this error error erro2

ghost avatar Oct 25 '18 15:10 ghost

Can you check if the "create" factory has a condition for the type its trying to create?

If its possible to upload the executable, i can have a closer look.

pigeonhands avatar Oct 25 '18 23:10 pigeonhands

This bug is very strange. It seems to only effect certain applications. Seemingly ones with Types that gave generics.

debug

The checks in the create method statements always evaluate to false despite the compiled code and debugger showing that this should be true. Hmm.

Ive created a separate branch for this with my attempts so far. Help is much appreciated. https://github.com/BahNahNah/ConfuserExPlugins/tree/bug.1

pigeonhands avatar Oct 26 '18 01:10 pigeonhands

https://mega.nz/#!zqhQiKrK!1rkNrlkuham5paXVT_kGQ6fLWp0TAaSjwFV7udCANLM

this was obfuscated with non-modded confuserex btw only protection on is typescrambler

i found this only happens with vb.net programs as if i try it on a c# program it errors on something else which il make a issue on after this is resolved

ghost avatar Oct 26 '18 14:10 ghost

@BahNahNah is the bug/issue fixed ?

ElektroKill avatar Apr 10 '19 19:04 ElektroKill

@BahNahNah is the bug/issue fixed ?

The issue is you cant store the result of typeof in a local, you must have it as part of the if statement. if(typeof(t) == typeof(MyType)), mixed in with a couple of other minor bugs with the object/call factories.

I actually did fix it, but in someone elses computer that i dont have access to anymore. I now work full time so dont have a lot of time. This project has been bugging me for weeks so i will get around to fixing it at some point hopefully.

pigeonhands avatar Apr 11 '19 06:04 pigeonhands