cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MiniGab <>
Subject [GitHub] cordova-plugin-camera pull request: Fix FileNotFoundException in o...
Date Wed, 20 Jan 2016 15:56:45 GMT
GitHub user MiniGab opened a pull request:

    Fix FileNotFoundException in ouputModifiedBitmap

    The ouputModifiedBitmap expect the result from FileHelper.getRealPath to return null in
case of error :
        String realPath = FileHelper.getRealPath(uri, this.cordova);
        // if realPath == "" => fileName = ""
        String fileName = realPath != null ?
                realPath.substring(realPath.lastIndexOf('/') + 1) :
                "modified." + (this.encodingType == JPEG ? "jpg" : "png");
        String modifiedPath = getTempDirectoryPath() + "/" + fileName;
        OutputStream os = new FileOutputStream(modifiedPath); <-- error when fileName ==
    This might be related to and

You can merge this pull request into a Git repository by running:

    $ git pull master

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #155
commit 9ea6d47225024890f251688a437d43c892b97a97
Author: Gabriel <>
Date:   2016-01-20T15:21:09Z

    Fix FileNotFoundException when opening a file from a third party application


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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message