Page MenuHomeDevCentral

Handle NULL value
ClosedPublic

Authored by dereckson on Feb 27 2022, 01:36.
Tags
None
Referenced Files
F6802345: D2563.id6474.diff
Fri, Apr 11, 06:24
Unknown Object (File)
Wed, Apr 9, 09:09
Unknown Object (File)
Mon, Apr 7, 22:36
Unknown Object (File)
Wed, Apr 2, 15:48
Unknown Object (File)
Sun, Mar 30, 21:03
Unknown Object (File)
Thu, Mar 27, 04:33
Unknown Object (File)
Tue, Mar 18, 13:41
Unknown Object (File)
Sun, Mar 16, 18:32
Subscribers
None

Details

Summary

The dump didn't handle the NULL type.

This created an issue, as a NULL value in JavaScript:

  • is an object (sic)
  • doesn't have a constructor property in prototype
Test Plan

runas: {{ bot['runas'] | default('') }}
now renders as runas: NULL.

Diff Detail

Repository
rINFRAWWW Nasqueron infrastructure servers website
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Feb 27 2022, 01:36

SCSS rules gives:

image.png (191×477 px, 25 KB)

That should attract attention it's not an expected value.

This revision was automatically updated to reflect the committed changes.