Community
Participate
Working Groups
While investigating bug 340923, I see the new compiler optimizes out a redundant null check at line 413 of subject class; there is a "if (config != null)" inside a block that has already checked "if (config != null)" I suggest the bundle be retagged, to make sure we distribute latest output from compiler, and if we do that, I'd suggest we go ahead and fix the code ... but, obviously doesn't hurt much.
Created attachment 192201 [details] patch to remove redundant null check
Comment on attachment 192201 [details] patch to remove redundant null check The compiler is indeed flagging an unnecessary null check, but the patch is incorrect. It removes the code in question from the else code flow, which is necessary.
Removed the redundant null check.
> ... but the patch is > incorrect. It removes the code in question from the else code flow, which is > necessary. doh, sorry for the sloppy patch. thanks for fixing.