teragrep / pth_06

Teragrep Datasource for Apache Spark
GNU Affero General Public License v3.0
0 stars 6 forks source link

Null pointer dereferences in RowConverter.java: 252 #46

Open StrongestNumber9 opened 4 months ago

StrongestNumber9 commented 4 months ago

Describe the bug

*** CID 1594366:  Null pointer dereferences  (NULL_RETURNS)
/src/main/java/com/teragrep/pth_06/task/s3/RowConverter.java: 252 in com.teragrep.pth_06.task.s3.RowConverter.get()()
246     
247     
248             if (LOGGER.isDebugEnabled()) {
249                 LOGGER.debug("Parsersyslog event:" + rfc5424Frame.toString());
250             }
251     
>>>     CID 1594366:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "null" "(new com.teragrep.rlo_06.RFC5424Timestamp(rfc5424Frame.timestamp)).toZonedDateTime()" when calling "rfc3339ToEpoch".
252             final long epochMicros = rfc3339ToEpoch(new RFC5424Timestamp(rfc5424Frame.timestamp).toZonedDateTime());
253     
254             // input
255             final byte[] source = eventToSource();
256     
257             // origin

Software version

3.0.1