Add null check

This commit is contained in:
de4dot 2012-07-29 14:26:24 +02:00
parent e225a342ae
commit 5b026a0d05

View File

@ -118,7 +118,7 @@ namespace de4dot.code.deobfuscators.Confuser {
protected override int detectInternal() {
int val = 0;
int sum = toInt32(jitMethodsDecrypter.Detected) +
int sum = toInt32(jitMethodsDecrypter != null ? jitMethodsDecrypter.Detected : false) +
toInt32(proxyCallFixer != null ? proxyCallFixer.Detected : false) +
toInt32(antiDebugger != null ? antiDebugger.Detected : false) +
toInt32(antiDumping != null ? antiDumping.Detected : false) +