diff options
Diffstat (limited to 'gprofng/src/Dbe.cc')
-rw-r--r-- | gprofng/src/Dbe.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gprofng/src/Dbe.cc b/gprofng/src/Dbe.cc index 95daa72..09b7f94 100644 --- a/gprofng/src/Dbe.cc +++ b/gprofng/src/Dbe.cc @@ -9591,14 +9591,12 @@ dbeGetTLDataRepVals (VMode view_mode, hrtime_t start_ts, hrtime_t delta, } if (sampleVals != NULL) { - Sample* sample = (Sample*) packets->getObjValue (PROP_SMPLOBJ, packetIdx); - if (!sample || !sample->get_usage ()) - sample = sample; - else + Sample *sample = (Sample*) packets->getObjValue (PROP_SMPLOBJ, packetIdx); + if (sample != NULL) { - PrUsage* prusage = sample->get_usage (); - Vector<long long> *mstateVals = prusage->getMstateValues (); - sampleVals->store (eventIdx, mstateVals); + PrUsage *prusage = sample->get_usage (); + if (prusage != NULL) + sampleVals->store (eventIdx, prusage->getMstateValues ()); } } } |