nullpointerexception tag

14 questions


1 answers
132 views
0
MediaRecorder.stop() Returns NullPointerException

Currently, we start recording by pressing the Start button on the dialog, and when we press the Stop button, another save confirmation dialog is displayed, and when we press the Save button, the recor...


1 answers
102 views
0
MediaRecorder.stop() Returns NullPointerException

Currently, we start recording by pressing the Start button on the dialog, and when we press the Stop button, another save confirmation dialog is displayed, and when we press the Save button, the recor...


1 answers
149 views
0
Attempt to Invoke virtual method 'void.setDefaultBufferSize on a null object reference

https://github.com/yabushi/TimeStampCameraWhen you attempt to RUN the java.lang.NullPointerException: Attempt to Invoke virtual method 'void android.graphics.SurfaceTexture.setDefaultBufferSize(int, i...


1 answers
83 views
0
Unboxing of 'characteristics.get(CameraCharacteristics.LENS_FACING) 'may produce' java.lang.NullPointerException'

https://github.com/yabushi/TimeStampCameraThe part I wrote myself ↓ https://github.com/yabushi/TimeStampCamera/blob/4b4c441675a6a5e7d6b2cf1f0448e19b1a115fd7/app/src/main/java/com/example/shigeki/times...


1 answers
161 views
0
Why is it possible to do throw null; when handling exceptions" in Java?

public class WhatTheShoot { public static void main(String args[]){ try { throw null; } } catch (Exception e){ System.out.println(e instanceof NullPointerException); System.out.println(e instance...


1 answers
109 views
0
Null pointer exception occurs when you call findViewById() on Android.

Could you tell me what the problem is in the program below? In the onCreate() method, findViewById() is called, and the return value is null even if you try all the id.I don't know why, but does anyon...


1 answers
117 views
0
I don't know how to resolve Java NullPointerException.

Using a generic stack, you are writing a code that converts a median expression to a posterior expression, then outputs an expression, and then outputs an answer, but the expression is still printed d...


1 answers
113 views
0
How to clean up null exception handling

Usually when you make a code, if (someobject != null) { someobject.doCalc(); }They're making exceptions in the same way, but they look so dirty to meIs there a way to make it cleaner?


1 answers
79 views
0
NullPointerException when accessing view from onCreate()

This is one of the typical questions that is frequently asked in hashcodeYou have created a new activity using the wizard according to the tutorial. NullPointerException occurred when a method call wa...


1 answers
81 views
0
What is NullPointerException and how do I fix it?

What is NullPointerException (java.lang.NullPointerException) and why does it occur?Is there any method that can be used to prevent a program from terminating abnormally due to NullPointerException?

- 1 - »

© 2024 OneMinuteCode. All rights reserved.