The following appears in the command window. What does it mean?java.​lang.NullP​ointerExce​ption

조회 수: 2 (최근 30일)
What does this mean: java.lang.NullPointerException in red many times.
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 5월 16일
There are a number of ways that can happen. We would need more information such as operating system and matlab version and what you were doing and whether there are additional messages.
Unfortunately a fair portion of the time the question needs to be sent to Support.

댓글을 달려면 로그인하십시오.

답변 (1개)

Yair Altman
Yair Altman 2019년 7월 9일
This is an error that originates from Java code, typically concerning some GUI component that misbehavs or which does not handle some edge-case properly. You need to either adapt the way that you interact with that code (for example, ensure that you don't pass a Null pointer i.e. [] or {} as input argument), or ask the code's developers to handle this edge case.
Note that in a very large number of cases, you can safely ignore such command-window errors unless you see that there is really something wrong (for example, bad GUI rendering etc.). Yes they are indeed ugly and bothersome, but in many cases there are also harmless.
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 7월 9일
These errors can also occur due to internal MATLAB problems such as corrupted MATLAB installation. Also problems like this can show up if you are using your own JAVA.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by