混淆后的bugly报错分析

bugly日志信息解读示例:

Attempt to invoke interface method 'java.util.ArrayList h.i.a.c.a.a(h.i.a.c.d.e)' on a null object reference

Attempt to invoke virtual method 'android.view.ViewTreeObserver android.widget.FrameLayout.getViewTreeObserver()' on a null object reference

总结规律:
上面两个例子都是'ClassA xxx.xxx.xxx()'表示是xxx.xxx.xxx方法出异常了,
这个方法的返回值是ClassA

根据这个规律我们分析这个异常:
Attempt to invoke interface method 'com.maka.app.postereditor.data.PageData com.maka.app.postereditor.editor.f.N()' on a null object reference com.maka.app.h5editor.ui.activity.H5EditorActivity.R0(SourceFile:1)

应该是H5EditorActivity类里com.maka.app.postereditor.editor.f.N() editor.f 表示f类的N方法出错了,而且这方法的返回值是PageData

我们先在H5EditorActivity的import里找com.maka.app.postereditor.editor这个目录里有哪些类,找到这些:
import com.maka.app.postereditor.editor.EditorConfigView;
import com.maka.app.postereditor.editor.EditorController;
import com.maka.app.postereditor.editor.IEditorView;
import com.maka.app.postereditor.editor.base.EditorHelper;
import com.maka.app.postereditor.editor.bg.BgEditConfigView;
import com.maka.app.postereditor.editor.group.GroupEditorConfigView;
import com.maka.app.postereditor.editor.image.ImageEditorConfigView;
import com.maka.app.postereditor.editor.layer.LayerConfigView;
import com.maka.app.postereditor.editor.shape.ShapeEditorConfigView;
import com.maka.app.postereditor.editor.text.TextEditorConfigView;

再找上面类中有哪个类在H5EditorActivity中调用了一个返回值为PageData的方法,排查这上面几个接口和类,发现只有EditorController这个接口的   PageData getSelectedPage();方法是返回PageData对象的。所以应该是H5EditorActivty里的mEditorController.getSelectPage方法报的错。
至些错误已经定位到,bug修复。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值