Mercurial > projects > dwt-addons
changeset 196:66bceed20048
Fix: NullPointer access.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 10 Feb 2009 17:12:01 +0100 |
parents | a4d38d47ddc4 |
children | 0ea0c9f9008f |
files | dwtx/jface/util/Policy.d |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dwtx/jface/util/Policy.d Tue Feb 03 16:08:10 2009 +0100 +++ b/dwtx/jface/util/Policy.d Tue Feb 10 17:12:01 2009 +0100 @@ -85,8 +85,10 @@ if (status.getException() !is null) { auto e = status.getException(); Stderr.formatln( "Exception of type {} in {}({}): {}", e.classinfo.name, e.file, e.line, e.msg ); - foreach( msg; e.info ){ - Stderr.formatln( " trc: {}", msg ); + if( e.info !is null ){ + foreach( msg; e.info ){ + Stderr.formatln( " trc: {}", msg ); + } } // status.getException().printStackTrace(); }