skip to Main Content

Android Studio – Error java.lang.NullPointerException: Attempt to get length of null array at com.example.watch.PermissionActivity.onCreate(PermissionActivity.kt:42)

import android.app.Activity import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.os.Bundle import android.util.Log import androidx.core.app.ActivityCompat import androidx.fragment.app.FragmentActivity import java.util.* class PermissionActivity : FragmentActivity() { private var mPermissions: ArrayList<String?>? = null override fun onNewIntent(intent: Intent) { super.onNewIntent(intent) finish() } override fun onCreate(savedInstanceState:…

VIEW QUESTION
Back To Top
Search