Mercurial > projects > dwt-addons
comparison dwtx/jface/util/Policy.d @ 196:66bceed20048
Fix: NullPointer access.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 10 Feb 2009 17:12:01 +0100 |
parents | 7ffeace6c47f |
children |
comparison
equal
deleted
inserted
replaced
195:a4d38d47ddc4 | 196:66bceed20048 |
---|---|
83 public void log(IStatus status) { | 83 public void log(IStatus status) { |
84 Stderr.formatln(status.getMessage()); | 84 Stderr.formatln(status.getMessage()); |
85 if (status.getException() !is null) { | 85 if (status.getException() !is null) { |
86 auto e = status.getException(); | 86 auto e = status.getException(); |
87 Stderr.formatln( "Exception of type {} in {}({}): {}", e.classinfo.name, e.file, e.line, e.msg ); | 87 Stderr.formatln( "Exception of type {} in {}({}): {}", e.classinfo.name, e.file, e.line, e.msg ); |
88 foreach( msg; e.info ){ | 88 if( e.info !is null ){ |
89 Stderr.formatln( " trc: {}", msg ); | 89 foreach( msg; e.info ){ |
90 Stderr.formatln( " trc: {}", msg ); | |
91 } | |
90 } | 92 } |
91 // status.getException().printStackTrace(); | 93 // status.getException().printStackTrace(); |
92 } | 94 } |
93 } | 95 } |
94 }; | 96 }; |