Skip to content

Commit bd5104d

Browse files
committed
Prevent null reference
1 parent 9358b2e commit bd5104d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MPSEngine.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ struct MPSNotify
1010
{
1111
void operator () (MPSEngineObserver* obs)
1212
{
13-
obs->notify();
13+
if (obs)
14+
obs->notify();
1415
}
1516
};
1617
/* End Utility Structures */

0 commit comments

Comments
 (0)