We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cf3a6e commit a0284efCopy full SHA for a0284ef
src/android/com/emj365/plugins/AudioRecorderAPI.java
@@ -230,7 +230,7 @@ public void run() {
230
231
private JSONObject composeCallback() throws JSONException {
232
File f = new File(outputFile);
233
- if(f.exists())
+ if(f.exists() && f.length() > 0)
234
{
235
String json = "{ path: '" + outputFile + "', duration: " + duration + " }";
236
return new JSONObject(json);
0 commit comments