From 500cdcaf1b3a3bcfc8cbc5739a155d276ce21d09 Mon Sep 17 00:00:00 2001 From: de4dot Date: Wed, 28 Sep 2011 02:00:29 +0200 Subject: [PATCH] Not ignoring all PE file load exceptions, but added null ref exception --- de4dot.code/FilesDeobfuscator.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/de4dot.code/FilesDeobfuscator.cs b/de4dot.code/FilesDeobfuscator.cs index 4ac801e5..c7380d63 100644 --- a/de4dot.code/FilesDeobfuscator.cs +++ b/de4dot.code/FilesDeobfuscator.cs @@ -167,9 +167,12 @@ namespace de4dot { catch (BadImageFormatException) { return; // Not a .NET file } - catch (Exception ex) { - Log.w("Could not load file: {0}. Use -v to see stack trace.", file.Filename); - Utils.printStackTrace(ex, Log.LogLevel.verbose); + catch (NullReferenceException) { + Log.w("Could not load file: {0}", file.Filename); + return; + } + catch (IOException) { + Log.w("Could not load file: {0}", file.Filename); return; }