VirtualBox

Changeset 87619 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Feb 5, 2021 3:39:42 AM (4 years ago)
Author:
vboxsync
Message:

IPRT/rest: RTCRestDataObject::deserializeFromJson - if the value at
cursor is null, just call setNull() and don't try to iterate it as an
object as that triggers assertion in the debug build. bugref:9167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/rest/rest-primary-object-types.cpp

    r85084 r87619  
    22672267int RTCRestDataObject::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    22682268{
     2269    if (RTJsonValueGetType(a_rCursor.m_hValue) == RTJSONVALTYPE_NULL)
     2270    {
     2271        setNull();
     2272        return VINF_SUCCESS;
     2273    }
     2274
    22692275    /*
    22702276     * Make sure the object starts out with default values.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette