cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Blotsky <dblot...@microsoft.com>
Subject RE: Facebook infer on Cordova / plugins
Date Wed, 17 Jun 2015 19:09:59 GMT
We could incorporate this into our CI. I've also been reading about Infer recently. Folks:
thoughts?

Kindly,
Dmitry

-----Original Message-----
From: Axel Nennker [mailto:ignisvulpis@gmail.com] 
Sent: Tuesday, June 16, 2015 3:39 PM
To: dev
Subject: Facebook infer on Cordova / plugins

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org
Mime
View raw message