Changeset 164 for cpp


Ignore:
Timestamp:
03/11/14 14:30:23 (10 years ago)
Author:
sz
Message:

null value handling in Dictionary serialization/toString

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/classes/collectionobj.cpp

    r153 r164  
    386386                out+=q;
    387387                out+="\":";
    388                 out+=((ExtValue*)it->value)->serialize();
     388                if (it->value!=NULL)
     389                        out+=((ExtValue*)it->value)->serialize();
     390                else
     391                        out+="null";
    389392                it++;
    390393                if (it.isValid()) out+=",";
     
    408411                out+=it->key;
    409412                out+=":";
    410                 out+=((ExtValue*)it->value)->getString();
     413                if (it->value!=NULL)
     414                        out+=((ExtValue*)it->value)->getString();
     415                else
     416                        out+="null";
    411417                it++;
    412418                if (it.isValid()) out+=",";
Note: See TracChangeset for help on using the changeset viewer.