Public bug reported:

[Impact]
Running GNOME Software gives many JsonArray warnings on the command line:
Json-CRITICAL **: json_object_get_array_member: assertion 'node != NULL' failed
Json-CRITICAL **: json_array_get_length: assertion 'array != NULL' failed
This is due to the code not handling there being no plugs defined in the 
interface table (which is valid when it is empty).

[Test Case]
1. Run GNOME Software from the command line
$ killall gnome-software
$ gnome-software

Expected result:
No JsonArray critical warnings are show.

Observed result:
Many JsonArray critical warnings are show. 

[Regression Potential]
Risk of additional checks breaking expected behaviour.

** Affects: gnome-software (Ubuntu)
     Importance: Low
         Status: Fix Released

** Affects: gnome-software (Ubuntu Xenial)
     Importance: Low
     Assignee: Robert Ancell (robert-ancell)
         Status: Fix Committed

** Also affects: gnome-software (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: gnome-software (Ubuntu)
       Status: New => Fix Released

** Changed in: gnome-software (Ubuntu)
   Importance: Undecided => Low

** Changed in: gnome-software (Ubuntu Xenial)
   Importance: Undecided => Low

** Changed in: gnome-software (Ubuntu Xenial)
       Status: New => Fix Committed

** Changed in: gnome-software (Ubuntu Xenial)
     Assignee: (unassigned) => Robert Ancell (robert-ancell)

** Summary changed:

- Many JsonArray warnings on command line
+ Many JsonArray critical warnings on command line

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-software in Ubuntu.
https://bugs.launchpad.net/bugs/1790563

Title:
  Many JsonArray critical warnings on command line

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1790563/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to