There is an instance in a view schedule class where a caller calls a member
From: Erik Hovland <erik@hovland.org>
function that can return a null pointer but does not check the returned pointer.
---
libs/libmythtv/viewschdiff.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/libs/libmythtv/viewschdiff.cpp b/libs/libmythtv/viewschdiff.cpp
index 5794ec4..89cf64d 100644
a
|
b
|
void ViewScheduleDiff::updateBackground(void) |
198 | 198 | QPainter tmp(&bground); |
199 | 199 | |
200 | 200 | LayerSet *container = theme->GetSet("background"); |
| 201 | if (!container) |
| 202 | return; |
| 203 | |
201 | 204 | container->Draw(&tmp, 0, 0); |
202 | 205 | |
203 | 206 | tmp.end(); |
… |
… |
void ViewScheduleDiff::edit() |
260 | 263 | void ViewScheduleDiff::upcoming() |
261 | 264 | { |
262 | 265 | ProgramInfo *pi = CurrentProgram(); |
| 266 | if (!pi) |
| 267 | return; |
263 | 268 | |
264 | 269 | ProgLister *pl = new ProgLister(plTitle, pi->title, "", |
265 | 270 | gContext->GetMainWindow(), "proglist"); |