Skip to content

Crash onCreate: findViewById<CardView>(R.id.search_bar_card_view) must not be null #42

@mkilp

Description

@mkilp

Heya!

I tried putting in your picker and sadly run into a wierd crash:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.joinally.mainapplication/com.sucho.placepicker.PlacePickerActivity}: java.lang.IllegalStateException: findViewById<CardView>(R.id.search_bar_card_view) must not be null
Caused by: java.lang.IllegalStateException: findViewById<CardView>(R.id.search_bar_card_view) must not be null
        at com.sucho.placepicker.PlacePickerActivity.showSearchBar(PlacePickerActivity.kt:130)
        at com.sucho.placepicker.PlacePickerActivity.onCreate(PlacePickerActivity.kt:81)
        at android.app.Activity.performCreate(Activity.java:8000)
        at android.app.Activity.performCreate(Activity.java:7984)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)

I do use Java but that should technically not be an issue.

Hope we can figure this out!
Thanks and best
Marvin / Nop0x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions