{"id":795,"date":"2020-01-13T08:11:27","date_gmt":"2020-01-13T08:11:27","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/reliability\/empty-variables-should-not-be-used-in-actions-that-throw-null-pointer-exception\/"},"modified":"2020-03-20T08:44:58","modified_gmt":"2020-03-20T08:44:58","slug":"emptyvariableaction","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/emptyvariableaction","title":{"rendered":"Empty variables should not be used in actions that throw null pointer exception"},"content":{"rendered":"\n<p style=\"text-align:center\">Introduced in version: 1.3 (29 Jan 2020)<\/p>\n\n\n\n<p>This is definitely a bug. The variable is guaranteed to be empty and is passed to an action that throws an error for empty arguments. Actions that do this are: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Change Object<\/li><li>Show Page<\/li><li>Export<\/li><li>Import<\/li><li>REST\/WebService<\/li><li>Generate document<\/li><li>Download document<\/li><li>Validation feedback<\/li><\/ul>\n\n\n\n<p><strong>Noncompliant example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-15.png\" alt=\"\" class=\"wp-image-798\" width=\"463\" height=\"276\"\/><\/figure>\n\n\n\n<p><strong> Compliant example: <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"227\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-16.png\" alt=\"\" class=\"wp-image-799\" srcset=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-16.png 721w, https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-16-480x151.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 721px, 100vw\" \/><\/figure>\n","protected":false},"featured_media":0,"parent":97,"menu_order":6,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-795","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/795"}],"collection":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=795"}],"version-history":[{"count":4,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/795\/revisions"}],"predecessor-version":[{"id":1061,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/795\/revisions\/1061"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/97"}],"next":[{"title":"Entity events should have either no or exactly one handler","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/hanlderperevent","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/560"}],"prev":[{"title":"Delete behaviour should have error message if blue","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/associationerrormessage","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/567"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=795"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}