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
7499浏览 • 1回复 待解决
ohos.util.json转换string问题
185浏览 • 1回复 待解决
util.generateRandomUUID是什么作用
1792浏览 • 1回复 待解决
util.generateRandomUUID 有没有C++版本的
1768浏览 • 1回复 待解决
RichText组件font标签size属性不符合预期
1812浏览 • 1回复 待解决
Map对象使用[]赋值,Map中的size不递增
402浏览 • 1回复 待解决
有计算两个日期之间时间的util接口吗
1702浏览 • 1回复 待解决
HarmonyOS list编辑移动效果
160浏览 • 1回复 待解决
HarmonyOS List展示不全的问题
174浏览 • 1回复 待解决
HarmonyOS scroll和list滚动冲突
277浏览 • 1回复 待解决
HarmonyOS List item 刷新问题
664浏览 • 1回复 待解决
HarmonyOS List的divider使用
401浏览 • 0回复 待解决
HarmonyOS 列表List相关问题
323浏览 • 1回复 待解决
HarmonyOS list滑动问题
672浏览 • 1回复 待解决