diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c
index b9485e7..b138ed0 100644
--- a/ext/pulse/pulsesink.c
+++ b/ext/pulse/pulsesink.c
@@ -752,6 +752,8 @@ gst_pulseringbuffer_acquire (GstRingBuffer * buf, GstRingBufferSpec * spec)
   /* we need a context and a no stream */
   pctx = gst_pulsering_get_context (pbuf);
   g_assert (!pbuf->stream);
+  g_assert (pctx);
+  g_assert (pctx->context);
 
   /* enable event notifications */
   GST_LOG_OBJECT (psink, "subscribing to context events");
@@ -2028,6 +2030,7 @@ gst_pulsesink_set_volume (GstPulseSink * psink, gdouble volume)
   gst_pulse_cvolume_from_linear (&v, pbuf->sample_spec.channels, volume);
 
   pctx = gst_pulsering_get_context (pbuf);
+  g_assert (pctx);
 
   if (!(o = pa_context_set_sink_input_volume (pctx->context, idx,
               &v, NULL, NULL)))
@@ -2097,6 +2100,7 @@ gst_pulsesink_set_mute (GstPulseSink * psink, gboolean mute)
     goto no_index;
 
   pctx = gst_pulsering_get_context (pbuf);
+  g_assert (pctx);
 
   if (!(o = pa_context_set_sink_input_mute (pctx->context, idx,
               mute, NULL, NULL)))
@@ -2193,6 +2197,7 @@ gst_pulsesink_get_volume (GstPulseSink * psink)
     goto no_index;
 
   pctx = gst_pulsering_get_context (pbuf);
+  g_assert (pctx);
 
   if (!(o = pa_context_get_sink_input_info (pctx->context, idx,
               gst_pulsesink_sink_input_info_cb, pbuf)))
@@ -2268,6 +2273,7 @@ gst_pulsesink_get_mute (GstPulseSink * psink)
     goto no_index;
 
   pctx = gst_pulsering_get_context (pbuf);
+  g_assert (pctx);
 
   if (!(o = pa_context_get_sink_input_info (pctx->context, idx,
               gst_pulsesink_sink_input_info_cb, pbuf)))
@@ -2357,6 +2363,7 @@ gst_pulsesink_device_description (GstPulseSink * psink)
     goto no_buffer;
 
   pctx = gst_pulsering_get_context (pbuf);
+  g_assert (pctx);
 
   if (!(o = pa_context_get_sink_info_by_index (pctx->context,
               pa_stream_get_device_index (pbuf->stream),
@@ -2503,6 +2510,7 @@ gst_pulsesink_change_title (GstPulseSink * psink, const gchar * t)
   pbuf->stream_name = g_strdup (t);
 
   pctx = gst_pulsering_get_context (pbuf);
+  g_assert (pctx);
 
   if (!(o = pa_stream_set_name (pbuf->stream, pbuf->stream_name, NULL, NULL)))
     goto name_failed;
@@ -2579,6 +2587,7 @@ gst_pulsesink_change_props (GstPulseSink * psink, GstTagList * l)
     goto no_buffer;
 
   pctx = gst_pulsering_get_context (pbuf);
+  g_assert (pctx);
 
   if (!(o = pa_stream_proplist_update (pbuf->stream, PA_UPDATE_REPLACE,
               pl, NULL, NULL)))
