GitHub user MiniGab opened a pull request:

    https://github.com/apache/cordova-plugin-camera/pull/155

    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 https://issues.apache.org/jira/browse/CB-9960 and 
https://issues.apache.org/jira/browse/CB-10093

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

    $ git pull https://github.com/MiniGab/cordova-plugin-camera master

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

    https://github.com/apache/cordova-plugin-camera/pull/155.patch

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 <mini...@users.noreply.github.com>
Date:   2016-01-20T15:21:09Z

    Update FileHelper.java
    
    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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to