@@ -60,13 +60,12 @@ namespace griddb {
6060 GSChar bExists;
6161
6262 GSResult ret = gsGetContainerInfo (mStore , name, &containerInfo, &bExists);
63- if (bExists == false ) {
64- return NULL ;
65- }
6663 if (ret != GS_RESULT_OK) {
6764 throw GSException (mStore , ret);
6865 }
69-
66+ if (bExists == false ) {
67+ return NULL ;
68+ }
7069 return new ContainerInfo (&containerInfo);
7170 }
7271 /* *
@@ -81,11 +80,12 @@ namespace griddb {
8180
8281 // Create new gsContainer
8382 GSResult ret = gsPutContainerGeneral (mStore , gsInfo->name , gsInfo, modifiable, &pContainer);
84-
8583 if (ret != GS_RESULT_OK) {
8684 throw GSException (mStore , ret);
8785 }
88-
86+ if (pContainer == NULL ) {
87+ return NULL ;
88+ }
8989 return new Container (pContainer, gsInfo);
9090 }
9191 /* *
@@ -128,7 +128,7 @@ namespace griddb {
128128 * Get Partition controller. Convert from C-API: gsGetPartitionController
129129 */
130130 PartitionController* Store::partition_info () {
131- GSPartitionController* partitionController;
131+ GSPartitionController* partitionController;
132132
133133 GSResult ret = gsGetPartitionController (mStore , &partitionController);
134134
0 commit comments