spencersalazar / chuck

28 stars 8 forks source link

!= with null-valued string produces NullExceptionPointer #14

Closed spencersalazar closed 10 years ago

spencersalazar commented 10 years ago

This code:

null @=> string str;
if(str != null)
{
    <<< "not null" >>>;
}

results in:

[chuck](VM): NullPointerException: (during string op) in shred[id=1:Untitled], PC=[7]

!= should probably just perform basic object-pointer comparison if either value is null.