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

DropletCreateActivity crash #102

Open
balanikaran opened this issue Jul 20, 2018 · 3 comments
Open

DropletCreateActivity crash #102

balanikaran opened this issue Jul 20, 2018 · 3 comments

Comments

@balanikaran
Copy link

Actual behaviour:

  • There is one/more blank droplet option which causes the activity to terminate due to resource not found.

Screenshot:

whatsapp image 2018-07-21 at 12 43 42 am

Logcat:

  • 07-21 00:40:28.000 12721-12721/in.tosc.digitaloceanapp E/AndroidRuntime: FATAL EXCEPTION: main
    Process: in.tosc.digitaloceanapp, PID: 12721
    android.content.res.Resources$NotFoundException: Resource ID #0x0
    at android.content.res.ResourcesImpl.getValueForDensity(ResourcesImpl.java:224)
    at android.content.res.Resources.getDrawableForDensity(Resources.java:876)
    at android.content.res.Resources.getDrawable(Resources.java:819)
    at android.content.Context.getDrawable(Context.java:605)
    at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:358)
    at in.tosc.digitaloceanapp.adapters.ImageAdapter.selectImage(ImageAdapter.java:113)
    at in.tosc.digitaloceanapp.adapters.ImageAdapter$1.onClick(ImageAdapter.java:75)
    at android.view.View.performClick(View.java:6314)
    at android.view.View$PerformClick.run(View.java:24790)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6582)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:460)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
@4lch4
Copy link
Contributor

4lch4 commented Jul 20, 2018

I have some spare time so I'll fire up Android Studio and see if I can't fix this and submit a PR.

@4lch4
Copy link
Contributor

4lch4 commented Jul 21, 2018

Unfortunately, this wasn't as easy of a fix as I'd hoped. I've kept my changes stashed in case no one else gets to this, I can continue work tomorrow.

@firefinchdev
Copy link
Contributor

@championswimmer
Solved #103
Pls Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants