NullPointerException error with Java

조회 수: 29 (최근 30일)
Deepayan Bhadra
Deepayan Bhadra 2019년 8월 29일
댓글: Prashant Nirmal 2019년 11월 15일
I'm getting this error message when trying to run some unit tests. How do I fix this?
Error using print (line 102)
There was a problem while generating the output: Java exception occurred:
java.lang.NullPointerException
at com.mathworks.hg.print.FOPPDFVectorStrategy.endJob(FOPPDFVectorStrategy.java:127)
at com.mathworks.hg.util.HGVectorOutputHelper.close(HGVectorOutputHelper.java:239)
Error in saveas (line 168)
print( h, name, ['-d' dev{i}] )
Error in executeUnitTests (line 392)
saveas(fig,['.\test\unit\output\' StateFlowModelName '_UT_' t '\' Current_Test_Name '\'
Caption '.pdf']);
  댓글 수: 1
Prashant Nirmal
Prashant Nirmal 2019년 11월 15일
Make sure your Java environment is correctly configured.
If the issue persists after configuring Java then uninstall MATLAB completely and install it again.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by