Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Fix a possible crash in the file browser. #2405

Merged
merged 1 commit into from May 12, 2015

Conversation

sigmabeta
Copy link
Contributor

Basically just needed to ignore extensionless files. Whoops.

try
{
fileExtension = mPath.substring(mPath.lastIndexOf('.'));
} catch (Exception ignored)

This comment was marked as off-topic.

This comment was marked as off-topic.

{
// We don't care about files without extensions anyway.
mType = TYPE_OTHER;
}

This comment was marked as off-topic.

This comment was marked as off-topic.

// Check that the file has an appropriate extension before trying to read out of it.
if (allowedExtensions.contains(fileExtension))
int extensionStart = mPath.lastIndexOf('.');
if ((extensionStart < 1))

This comment was marked as off-topic.

lioncash added a commit that referenced this pull request May 12, 2015
Android: Fix a possible crash in the file browser.
@lioncash lioncash merged commit b036a4e into dolphin-emu:master May 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants