[antlr-interest] C# target: .NET Framework bug causing NullReferenceException, must use this workaround
    Gavin Lambert 
    antlr at mirality.co.nz
       
    Sat Aug  9 19:23:27 PDT 2008
    
    
  
At 08:09 10/08/2008, Johannes Luber wrote:
 >I decided to use a ternary operator here, because I find it
 >strange that a string null is handled differently than an object 
 >null (as shown in the bugfix which Sam posted). That way I'm
 >safe regarding this bug and any possible problem regarding the
 >lack of the license.
According to the .NET documentation (I didn't look at the ECMA 
standard, but MS's own docs at 
http://msdn.microsoft.com/en-us/library/system.string.concat.aspx 
says the same thing), they are *supposed* to be handled exactly 
the same (not throwing the exception), but it's evident that the 
implementation doesn't agree :)
    
    
More information about the antlr-interest
mailing list