I try to do a null check on the writeConcernError field in kotlin as such:
if (mongoBulkWriteException.writeConcernError !== null) throw ex My IDE (intellij) complains that this condition will always evaluate to true. The docs are clear that the field is nullable so my IDE is clearly wrong. I suspect adding the @Nullable annotation to the getter will help guide my IDE to stop misinforming me