Lines Matching refs:NULL
115 BEGET_ERROR_CHECK(item != NULL, return 0, "Invalid parameter.");
117 BEGET_CHECK(str != NULL, return 0);
128 if (list == NULL) {
132 if (info == NULL) {
135 if (info->source != NULL) {
137 info->source = NULL;
139 if (info->target != NULL) {
141 info->target = NULL;
144 info = NULL;
150 if (list == NULL) {
154 if (info == NULL) {
157 if (info->target != NULL) {
159 info->target = NULL;
161 if (info->linkName != NULL) {
163 info->linkName = NULL;
166 info = NULL;
172 if ((list == NULL) || (data == NULL)) {
176 if (info == NULL) {
185 if ((head == NULL) || (targetMount == NULL)) {
189 if (node == NULL) {
198 if ((list == NULL) || (data == NULL)) {
202 if (info == NULL) {
211 if ((head == NULL) || (linkName == NULL)) {
215 if (node == NULL) {
226 BEGET_CHECK(sandbox != NULL && item != NULL && type != NULL, return -1);
228 BEGET_INFO_CHECK(srcPath != NULL, return 0, "Get src-path is null");
230 BEGET_INFO_CHECK(dstPath != NULL, return 0, "Get sandbox-path is null");
232 BEGET_INFO_CHECK(obj != NULL, return 0, "Get sandbox-flags is null");
238 BEGET_ERROR_CHECK(tmpMount != NULL, return -1, "Failed calloc err=%d", errno);
240 BEGET_ERROR_CHECK(tmpMount->source != NULL, free(tmpMount); return -1, "Failed to dup source");
242 BEGET_ERROR_CHECK(tmpMount->target != NULL, free(tmpMount); return -1, "Failed to dup target");
249 if (obj != NULL) {
269 BEGET_CHECK(!(sandbox == NULL || item == NULL || type == NULL), return -1);
272 BEGET_ERROR_CHECK(target != NULL, return 0, "Get target-name is null");
274 BEGET_ERROR_CHECK(name != NULL, return 0, "Get link-name is null");
276 BEGET_ERROR_CHECK(tmpLink != NULL, return -1, "Failed calloc err=%d", errno);
278 BEGET_ERROR_CHECK(tmpLink->target != NULL, free(tmpLink); return -1, "Failed to dup target");
280 BEGET_ERROR_CHECK(tmpLink->linkName != NULL, free(tmpLink); return -1, "Failed to dup linkName");
289 BEGET_ERROR_CHECK(!(sandbox == NULL || root == NULL || itemName == NULL), return -1,
292 BEGET_WARNING_CHECK(obj != NULL, return 0, "Cannot find item \' %s \' in sandbox config", itemName);
297 AddInfoToSandboxCallback func = NULL;
310 BEGET_ERROR_CHECK(item != NULL, return -1, "Failed get json array item %d", i);
318 BEGET_ERROR_CHECK(!(root == NULL || sandbox == NULL), return -1, "Invalid parameter.");
320 if (sandbox->rootPath == NULL) {
322 BEGET_ERROR_CHECK(sandboxRoot != NULL, return -1,
326 if (rootdir != NULL) {
328 BEGET_ERROR_CHECK(sandbox->rootPath != NULL, return -1,
343 BEGET_ERROR_CHECK(name != NULL, return NULL, "Sandbox map name is NULL.");
350 return NULL;
356 if (contents == NULL) {
361 BEGET_ERROR_CHECK(root != NULL, return -1, "Parse sandbox config \' %s \' failed", sandboxConfigFile);
387 BEGET_ERROR_CHECK(!(sandbox == NULL || sandboxConfig == NULL || name == NULL), return,
433 if (source == NULL || target == NULL) {
453 if (mount(source, target, NULL, tmpflags, NULL) != 0) {
465 BEGET_ERROR_CHECK(sandbox != NULL, return false, "preparing sandbox with invalid argument");
467 if (sandbox->rootPath == NULL) {
476 if ((list == NULL) || (data == NULL)) {
496 if ((head == NULL) || (rootPath == NULL)) {
505 if ((list == NULL) || (data == NULL)) {
527 if ((head == NULL) || (rootPath == NULL)) {
536 BEGET_ERROR_CHECK(name != NULL, return -1, "Prepare sandbox name is NULL.");
539 BEGET_ERROR_CHECK(map != NULL, return -1, "Cannot get sandbox map by name %s.", name);
543 BEGET_CHECK(sandbox->rootPath != NULL, return -1);
546 int rc = mount(NULL, "/", NULL, MS_REC | MS_SLAVE, NULL);
573 if (name == NULL) {
574 BEGET_LOGE("Init sandbox name is NULL.");
578 if (map != NULL) {
591 if (name == NULL) {
592 BEGET_LOGE("Destroy sandbox name is NULL.");
596 if (map == NULL) {
602 BEGET_CHECK(sandbox != NULL, return);
604 if (sandbox->rootPath != NULL) {
606 sandbox->rootPath = NULL;
621 if (name == NULL) {
622 BEGET_LOGE("Sandbox name is NULL.");
626 if (map == NULL) {
632 BEGET_CHECK(sandbox != NULL, return -1);
649 if (list == NULL) {
653 if (info != NULL) {
654 if (info->source != NULL) {
657 if (info->target != NULL) {
666 if (list == NULL) {
670 if (info != NULL) {
671 if (info->linkName != NULL) {
674 if (info->target != NULL) {
683 if (name == NULL) {
684 BEGET_LOGE("Init sandbox name is NULL.");
688 if (map == NULL) {
696 OH_ListTraversal(&map->sandbox->pathMountsHead, NULL, DumpSandboxMountInfo, 0);
697 OH_ListTraversal(&map->sandbox->fileMountsHead, NULL, DumpSandboxMountInfo, 0);
699 OH_ListTraversal(&map->sandbox->linksHead, NULL, DumpSandboxLinkInfo, 0);