Coder Social home page Coder Social logo

Comments (4)

HuRuWo avatar HuRuWo commented on May 22, 2024

测试 大概setdata 50以上就会报错

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Rect.height()' on a null object reference
                                                                     at com.bin.david.form.core.SmartTable.requestReMeasure(SmartTable.java:268)
                                                                     at com.bin.david.form.core.SmartTable.onMeasure(SmartTable.java:286)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.support.constraint.ConstraintLayout.internalMeasureChildren(ConstraintLayout.java:934)
                                                                     at android.support.constraint.ConstraintLayout.onMeasure(ConstraintLayout.java:973)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
                                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
                                                                     at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
                                                                     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692)
                                                                     at android.widget.LinearLayout.measureVertical(LinearLayout.java:760)
                                                                     at android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
                                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
                                                                     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692)
                                                                     at android.widget.LinearLayout.measureVertical(LinearLayout.java:760)
                                                                     at android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
                                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
                                                                     at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2778)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2451)
                                                                     at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1433)
                                                                     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1668)
                                                                     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1311)
                                                                     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6667)
                                                                     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:802)
                                                                     at android.view.Choreographer.doCallbacks(Choreographer.java:605)
                                                                     at android.view.Choreographer.doFrame(Choreographer.java:574)
                                                                     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:788)
                                                                     at android.os.Handler.handleCallback(Handler.java:815)
                                                                     at android.os.Handler.dispatchMessage(Handler.java:104)
                                                                     at android.os.Looper.loop(Looper.java:194)
                                                                     at android.app.ActivityThread.main(ActivityThread.java:5877)
                                                                     at java.lang.reflect.Method.invoke(Native Method)
                                                                     at java.lang.reflect.Method.invoke(Method.java:372)
                                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
                                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

from smarttable.

HuRuWo avatar HuRuWo commented on May 22, 2024

我找到了 闪退的原因了
就是使用了
ConstraintLayout 布局作为父布局,同时setdata 数据太长
希望修复该bug

from smarttable.

kona5362 avatar kona5362 commented on May 22, 2024

image
遇到类似的错误了。

1.7.1版本上没事
1.8.7版本上就会出现这个问题
和题主不一样
我不是ConstraintLayout 布局作为父布局

刚过完年回来,祝作者新年快乐,哈哈

from smarttable.

huangyanbin avatar huangyanbin commented on May 22, 2024

已修复 1.8.8

from smarttable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.