Skip to content
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

System.NullReferenceException #1

Open
ghost opened this issue Oct 25, 2018 · 5 comments
Open

System.NullReferenceException #1

ghost opened this issue Oct 25, 2018 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ghost
Copy link

ghost commented Oct 25, 2018

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

@pigeonhands
Copy link
Owner

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 pigeonhands added bug Something isn't working help wanted Extra attention is needed labels Oct 25, 2018
@pigeonhands
Copy link
Owner

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

@ghost
Copy link
Author

ghost commented Oct 26, 2018

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

@ElektroKill
Copy link

@BahNahNah is the bug/issue fixed ?

@pigeonhands
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants