Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B41210729 for ; Fri, 16 Oct 2015 08:34:25 +0000 (UTC) Received: (qmail 58506 invoked by uid 500); 16 Oct 2015 08:34:25 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 58464 invoked by uid 500); 16 Oct 2015 08:34:25 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 58452 invoked by uid 99); 16 Oct 2015 08:34:24 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2015 08:34:24 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 925B8DFBAB; Fri, 16 Oct 2015 08:34:24 +0000 (UTC) From: daserge To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-plugin-file-transfer pull request: Prevent Fatal Exception... Content-Type: text/plain Message-Id: <20151016083424.925B8DFBAB@git1-us-west.apache.org> Date: Fri, 16 Oct 2015 08:34:24 +0000 (UTC) Github user daserge commented on the pull request: https://github.com/apache/cordova-plugin-file-transfer/pull/79#issuecomment-148653298 Confirm this fix prevents a crash on 5.0.1 device: ``` E/FileTransfer(32760): Catch workaround for fatal exception E/FileTransfer(32760): java.lang.NullPointerException: Attempt to read from field 'int com.android.okio.Segment.limit' on a null object reference E/FileTransfer(32760): at com.android.okio.OkBuffer.write(OkBuffer.java:574) E/FileTransfer(32760): at com.android.okio.OkBuffer.read(OkBuffer.java:610) E/FileTransfer(32760): at com.android.okio.RealBufferedSource.read(RealBufferedSource.java:56) E/FileTransfer(32760): at com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection.java:465) E/FileTransfer(32760): at com.android.okhttp.internal.Util.skipAll(Util.java:227) E/FileTransfer(32760): at com.android.okhttp.internal.http.HttpConnection.discard(HttpConnection.java:235) E/FileTransfer(32760): at com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.close(HttpConnection.java:487) E/FileTransfer(32760): at com.android.okhttp.internal.Util.closeQuietly(Util.java:97) E/FileTransfer(32760): at com.android.okhttp.internal.http.HttpEngine.close(HttpEngine.java:580) E/FileTransfer(32760): at com.android.okhttp.internal.http.HttpURLConnectionImpl.disconnect(HttpURLConnectionImpl.java:113) E/FileTransfer(32760): at org.apache.cordova.filetransfer.FileTransfer$5.run(FileTransfer.java:1015) E/FileTransfer(32760): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) E/FileTransfer(32760): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) E/FileTransfer(32760): at java.lang.Thread.run(Thread.java:818) E/FileTransfer(32760): {"code":3,"source":"http:\/\/cordova.apache.org\/downloads\/BlueZedEx.mp3","target":"file:\/\/\/data\/data\/io.cordova.hellocordova\/files\/files\/testFile.txt","http_status":200,"exception":"Attempt to read from field 'int com.android.okio.Segment.limit' on a null object reference"} ``` --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org