summaryrefslogtreecommitdiff
path: root/include/osl/mutex.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/osl/mutex.hxx')
-rw-r--r--include/osl/mutex.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osl/mutex.hxx b/include/osl/mutex.hxx
index c2ee448d868e..5bcf0e56cce0 100644
--- a/include/osl/mutex.hxx
+++ b/include/osl/mutex.hxx
@@ -22,6 +22,7 @@
#include "osl/mutex.h"
+#include <cassert>
namespace osl
{
@@ -119,6 +120,7 @@ namespace osl
*/
Guard(T * pT_) : pT(pT_)
{
+ assert(pT != NULL);
pT->acquire();
}
@@ -153,6 +155,7 @@ namespace osl
*/
ClearableGuard(T * pT_) : pT(pT_)
{
+ assert(pT != NULL);
pT->acquire();
}