swordapp / JavaServer2.0

Java server library for supporting integration with SWORDv2
Other
1 stars 19 forks source link

Several potential NullPointerException bugs. #16

Open ITWOI opened 4 years ago

ITWOI commented 4 years ago

Hi all,

Our tool has found several potential NPE bugs.

  1. Variable md5Stream may be null due to the line 95. However, another access while( (count = md5Stream.read(bytes)) != -1 ) to the variable doesn't have the null check.

  2. Similarly, null checks are inconsistent at line 55 and line 52 in method getAbderaEntry.

Thanks.

ITWOI commented 4 years ago

Hi, we have reported the bugs a while ago would you please take a look and confirm if they are real bugs. We have been conducting an experiment to measure the accuracy of our static checker. We would be deeply appreciated if you can provide some feedback!