From 382317f3f6d92f61e89f8686f6429c53773fcbd0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 7 Sep 2006 12:12:21 +0000 Subject: [PATCH] Fix NULL-reference due to diagnosticInformation being optional --- src/gduutil.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gduutil.cpp b/src/gduutil.cpp index 67a9c6e..210989c 100644 --- a/src/gduutil.cpp +++ b/src/gduutil.cpp @@ -1,4 +1,4 @@ -/* $Id: gduutil.cpp,v 1.5 2006-08-31 12:55:54 marc Exp $ +/* $Id: gduutil.cpp,v 1.6 2006-09-07 12:12:21 adam Exp $ Copyright (c) 2005-2006, Index Data. See the LICENSE file for details @@ -429,7 +429,8 @@ std::ostream& std::operator<<(std::ostream& os, Z_APDU& zapdu) os << "unknown"; break; } - os << " " << c->diagnosticInformation; + if (c->diagnosticInformation) + os << " " << c->diagnosticInformation; } break; case Z_APDU_duplicateDetectionRequest: -- 1.7.10.4