Always check if context is valid when calling pa functions

Authored by drosca on Feb 2 2017, 9:05 AM.



If pa_context is null, pulseaudio aborts.

BUG: 375872

Test Plan

I can't reproduce the crash myself, but from backtrace this
should fix it.

Diff Detail

R115 Plasma Audio Volume Applet
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
drosca updated this revision to Diff 10841.Feb 2 2017, 9:05 AM
drosca retitled this revision from to Always check if context is valid when calling pa functions.
drosca updated this object.
drosca edited the test plan for this revision. (Show Details)
drosca added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 2 2017, 9:05 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
davidedmundson accepted this revision.Feb 2 2017, 11:33 AM
davidedmundson added a reviewer: davidedmundson.
This revision is now accepted and ready to land.Feb 2 2017, 11:33 AM
This revision was automatically updated to reflect the committed changes.