HarmonyOS java.util.List.size() 报错

报错如下:

Internal error: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "setBreakpointResults" is null 
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "setBreakpointResults" is null 
  at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) 
  at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) 
  at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:649) 
  at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) 
  at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) 
  at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) 
  at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) 
  at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) 
  at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) 
  at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) 
  at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) 
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "setBreakpointResults" is null 
  at com.huawei.deveco.panda.bridge.StageBreakManager.processSetBreakpointsResult(StageBreakManager.java:144) 
  at com.huawei.deveco.panda.bridge.StageBreakManager.lambda$getBreakpointsResponse$7(StageBreakManager.java:208) 
  at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) 
  ... 8 more
HarmonyOS
2024-11-04 10:37:14
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
superinsect

该报错指向"setBreakpointResults" is null,说明"setBreakpointResults"没有初始化,麻烦检查一下"setBreakpointResults"初始化时有没有问题,或是给"setBreakpointResults"初始化时赋值了null。

分享
微博
QQ
微信
回复
2024-11-04 17:50:16
相关问题
使用安装命令报错install invalid hap size
7619浏览 • 1回复 待解决
HarmonyOS util.generateRandomUUID()疑问
33浏览 • 1回复 待解决
HarmonyOS 图片获取SIZE
17浏览 • 1回复 待解决
HarmonyOS util.format(format,args)
36浏览 • 1回复 待解决
util.generateRandomUUID是什么作用
1958浏览 • 1回复 待解决
ohos.util.json转换string问题
300浏览 • 1回复 待解决
util.generateRandomUUID 有没有C++版本的
1902浏览 • 1回复 待解决
有计算两个日期之间时间的util接口吗
1839浏览 • 1回复 待解决
RichText组件font标签size属性不符合预期
1931浏览 • 1回复 待解决
Map对象使用[]赋值,Map中的size不递增
499浏览 • 1回复 待解决