«nullpointerexception» 태그된 질문

객체가 필요한 경우 응용 프로그램이 null을 사용하려고 할 때 throw되는 Java 예외입니다.

5
java.lang.NullPointerException : ID가있는 필수보기가 누락되었습니다.
안드로이드 스튜디오 3.6 app / build.gradle에서 : android { viewBinding.enabled = true 여기 내 XML : <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/bluetoothBottonMainContainer" android:layout_width="0dp" android:layout_height="104dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> <View android:id="@+id/viewPointNotSelect" android:layout_width="16dp" android:layout_height="16dp" android:background="@drawable/circle_transparent" app:layout_constraintBottom_toBottomOf="@+id/separator" app:layout_constraintEnd_toStartOf="@+id/separator" app:layout_constraintTop_toTopOf="parent" /> 그리고 또 다른 XML은 제외 prev. xml : <androidx.constraintlayout.widget.ConstraintLayout …

1
값을 할당 할 때 이상한 Java 3 진 동작. 이 일이 발생하기 위해 Java가 무대 뒤에서 무엇을하고 있습니까?
며칠 전, Java가 어떻게 또는 왜 다음을 수행 할 수 있는지에 대한 문서를 찾을 수없는 매혹적인 시나리오를 만났습니다. 이 스 니펫은 단순한 버그 형태입니다. @Test public void test() { boolean bool = false; Integer intVal = Integer.valueOf(5); Long longVal = null; Long result = bool ? intVal : longVal; System.out.println(" …
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.