Re: [CdapIO] Dereference of possibly-null reference warning

2022-06-24 Thread Elizaveta Lomteva
Hi Kenneth, Thank you for your input on this issue. It all worked out! Regards, Elizaveta

Re: [CdapIO] Dereference of possibly-null reference warning

2022-06-23 Thread Kenneth Knowles
Hi Elizaveta, Very good question. For this, I created org.apache.beam.sdk.util.Preconditions.checkStateNotNull ( https://github.com/apache/beam/blob/1851eef15c5f455c95402ced50d757ea167d33d9/sdks/java/core/src/main/java/org/apache/beam/sdk/util/Preconditions.java#L450 ) Multiple reasons: - Th

[CdapIO] Dereference of possibly-null reference warning

2022-06-17 Thread Elizaveta Lomteva
Hi community, I have a question about the compileJava check, null dereference warning. We use the checkState()/checkNotNull() methods instead of the if-else statement to check that the variable is not null to follow the convention, but this leads to a dereferencing warning for a possibly null r