Opened 12 years ago

Closed 12 years ago

#4735 closed defect (fixed)

mythfrontend needs to make sure that container pointer is valid

Reported by: Erik Hovland <erik@…> Owned by: Isaac Richards
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

mythfrontend often gets the background object pointer from calling: theme->GetSet?("background");

This can return null. But probably rarely does. It is still good practice to check for null before dereferencing the pointer.

Attachments (1)

fix-unchecked-null-returns-in-mythfrontend.patch (1.9 KB) - added by Erik Hovland <erik@…> 12 years ago.
always checks the container pointer before dereferencing

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by Erik Hovland <erik@…>

always checks the container pointer before dereferencing

comment:1 Changed 12 years ago by danielk

Resolution: fixed
Status: newclosed

(In [16198]) Fixes #4735. Adds some needed null pointer checks with patch from Erik Hovland.

Note: See TracTickets for help on using tickets.