JetBrains/kotlin — pull request #135 by tomhal (2012-11-04 16:19:05+00:00)
Title: Fix for issue: http://youtrack.jetbrains.com/issue/KT-2976

This is a patch for issue: http://youtrack.jetbrains.com/issue/KT-2976

Since this patch also makes the existing code for throwNPE unused it is replaced entirely by this new code.