안드로이드가 강제 종료가 됩니다. NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
조회수 7097회
안드로이드를 실행시키고 로그인을 하면 지도화면이 뜨는데 화면이 뜨고나서 바로 강제종료가 됩니다. logcat을 볼 줄 몰라서 뭐가 문제인지 말씀해주실 분 계세요?
06-15 06:26:14.721 7895-7895/com.ossw.taxiapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.ossw.taxiapp, PID: 7895
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
at com.ossw.taxiapp.DriverMapActivity$5.onDataChange(DriverMapActivity.java:212)
at com.google.firebase.database.Query$1.onDataChange(com.google.firebase:firebase-database@@19.3.0:179)
at com.google.firebase.database.core.ValueEventRegistration.fireEvent(com.google.firebase:firebase-database@@19.3.0:75)
at com.google.firebase.database.core.view.DataEvent.fire(com.google.firebase:firebase-database@@19.3.0:63)
at com.google.firebase.database.core.view.EventRaiser$1.run(com.google.firebase:firebase-database@@19.3.0:55)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
-
(•́ ✖ •̀)
알 수 없는 사용자 - 〉
댓글 입력