Skip to content
Snippets Groups Projects
Commit d3fd53a7 authored by Rene Brun's avatar Rene Brun
Browse files

Protection in case a pointer TClass* is null (thanks Ilka, Valeriy)

git-svn-id: http://root.cern.ch/svn/root/trunk@7899 27541ba8-7e3a-0410-8455-c3a389f83636
parent 4582b49f
No related branches found
No related tags found
No related merge requests found
// @(#)root/gpad:$Name: $:$Id: TInspectCanvas.cxx,v 1.8 2002/09/10 13:36:32 brun Exp $
// @(#)root/gpad:$Name: $:$Id: TInspectCanvas.cxx,v 1.9 2004/01/10 10:52:29 brun Exp $
// Author: Rene Brun 08/01/2000
/*************************************************************************
......@@ -269,7 +269,7 @@ void TInspectCanvas::InspectObject(TObject *obj)
if (member->IsaPointer()) {
char **p3pointer = (char**)(*ppointer);
if (! clm->IsStartingWithTObject() ) {
if (clm && !clm->IsStartingWithTObject() ) {
//NOTE: memory leak!
p3pointer = (char**)new TInspectorObject(p3pointer,clm);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment