12a6352bef
See https://issuetracker.google.com/issues/162446295 for more context, but in short: this will fail if the project: * targets java 8 * consumes external libraries targeting a higher version (java 9+). This includes Android SDK 30's android.jar, which targets java 9 * has `mapDiagnosticLocations` enabled for kapt targetElement is a nullable type, so this seems like a pretty cut-and-dry NPE fix