summaryrefslogtreecommitdiffstats
path: root/src/cppc4group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cppc4group.cpp')
-rw-r--r--src/cppc4group.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cppc4group.cpp b/src/cppc4group.cpp
index 950a714..409f2ef 100644
--- a/src/cppc4group.cpp
+++ b/src/cppc4group.cpp
@@ -22,7 +22,10 @@ struct CppC4Group::Private {
Private() : g{cc4group.new_()}
{
-
+ if(g == nullptr)
+ {
+ throw std::bad_alloc();
+ }
}
Private(CC4Group* g) : g{g}