Obscura cam crashed when a picture was shared from whatsapp.

in #utopian-io6 years ago

Project Information

Expected behavior

I expected I'll be able to share pictures from whatsapp to obscura cam without any hassle.

Actual behavior

When I share a picture from whtasapp the app crashes.

How to reproduce

  • share a picture from whatsapp to obscura cam
  • Browser/App version: Obscura || v 4.0.1
  • Operating system: Android 7.0

Recording Of The Bug

Logcat

FATAL EXCEPTION: main
Process: org.witness.sscphase1, PID: 2085
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.witness.sscphase1/org.witness.obscuracam.ui.ImageEditor}: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527)
    at android.os.Handler.dispatchMessage(Handler.java:110)
    at android.os.Looper.loop(Looper.java:203)
    at android.app.ActivityThread.main(ActivityThread.java:6292)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
Caused by: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.
    at android.database.CursorWindow.nativeGetString(Native Method)
    at android.database.CursorWindow.getString(CursorWindow.java:438)
    at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:66)
    at android.database.CursorWrapper.getString(CursorWrapper.java:137)
    at org.witness.obscuracam.ui.ImageEditor.pullPathFromUri(ImageEditor.java:1706)
    at org.witness.obscuracam.ui.ImageEditor.onCreate(ImageEditor.java:398)
    at android.app.Activity.performCreate(Activity.java:6737)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677)
    ... 9 more

Proof of Work Done

This is the link to my github account

Sort:  

Hey @kodeblacc
Thanks for contributing on Utopian.
We're already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 65702.61
ETH 3485.24
USDT 1.00
SBD 2.51