cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel Nennker <ignisvul...@gmail.com>
Subject Facebook infer on Cordova / plugins
Date Tue, 16 Jun 2015 22:39:07 GMT
Hi,

I ran infer on one of my projects and get the output below. I looked only
at the first issue reported and it I think it is an issue and easy to fix.
http://fbinfer.com/docs/hello-world.html#hello-world-android

Maybe this should be run on all Android plugins and Cordova Android code
from time to time?

cheers
Axel

Maybe I am using older versions on some plugins. Have not checked.

/home/ignisvulpis/development/nur_der_hsv/app/platforms/android/src/org/apache/cordova/camera/CameraLauncher.java:210:
error: NULL_DEREFERENCE
   object returned by queryImgDB(this,whichContentStore(this)) could be
null and is dereferenced at line 210

/home/ignisvulpis/development/nur_der_hsv/app/platforms/android/src/org/apache/cordova/camera/CameraLauncher.java:210:
error: RESOURCE_LEAK
   resource acquired by call to queryImgDB(...) at line 210 is not released
after line 210

/home/ignisvulpis/development/nur_der_hsv/app/platforms/android/src/org/apache/cordova/camera/CameraLauncher.java:1007:
error: NULL_DEREFERENCE
   object cursor last assigned on line 1006 could be null and is
dereferenced at line 1007

/home/ignisvulpis/development/nur_der_hsv/app/platforms/android/src/org/apache/cordova/camera/CameraLauncher.java:1024:
error: RESOURCE_LEAK
   resource acquired by call to queryImgDB(...) at line 1006 is not
released after line 1024

/home/ignisvulpis/development/nur_der_hsv/app/platforms/android/src/org/apache/cordova/camera/FileHelper.java:97:
error: NULL_DEREFERENCE
   object cursor last assigned on line 94 could be null and is dereferenced
at line 97

/home/ignisvulpis/development/nur_der_hsv/app/platforms/android/src/org/apache/cordova/camera/FileHelper.java:135:
error: NULL_DEREFERENCE
   object cursor last assigned on line 134 could be null and is
dereferenced at line 135

/home/ignisvulpis/development/nur_der_hsv/app/platforms/android/src/org/apache/cordova/camera/FileHelper.java:137:
error: RESOURCE_LEAK
   resource acquired by call to query(...) at line 134 is not released
after line 137

/home/ignisvulpis/development/nur_der_hsv/app/platforms/android/src/org/apache/cordova/file/LocalFilesystem.java:340:
error: RESOURCE_LEAK
   resource acquired to istream by call to FileInputStream(...) at line 327
is not released after line 340

/home/ignisvulpis/development/nur_der_hsv/app/platforms/android/src/org/apache/cordova/file/LocalFilesystem.java:340:
error: RESOURCE_LEAK
   resource acquired by call to FileOutputStream(...) at line 328 is not
released after line 340

/home/ignisvulpis/development/nur_der_hsv/app/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:554:
error: RESOURCE_LEAK
   resource acquired by call to getInputStream() at line 554 is not
released after line 554

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message