Select to view content in your preferred language

Edit geometry program crashes using SketchEditor

591
1
12-12-2021 09:56 AM
tanqidi
Emerging Contributor

When I use SketchEditor to edit polygon and Polyline geometry, it is very likely that the program will crash, I am very anxious, please help me to fix this problem,

The method I use is sketchEditor.start(Geometry)

The version I use is ArcGIS - Android :100.12.0

 

java.lang.NullPointerException: Parameter point must not be null
at com.esri.arcgisruntime.geometry.MultipartBuilder.addPoint(SourceFile:8)
at com.esri.arcgisruntime.a.i.f.q.h(SourceFile:56)
at com.esri.arcgisruntime.a.i.f.q.d(SourceFile:23)
at com.esri.arcgisruntime.a.i.f.g0.c(SourceFile:5)
at com.esri.arcgisruntime.a.i.f.y.c(SourceFile:3)
at com.esri.arcgisruntime.mapping.view.SketchEditor$d.onScroll(SourceFile:2)
at com.esri.arcgisruntime.mapping.view.DefaultMapViewOnTouchListener.i(SourceFile:22)
at com.esri.arcgisruntime.mapping.view.DefaultMapViewOnTouchListener.b(SourceFile:3)
at com.esri.arcgisruntime.mapping.view.DefaultMapViewOnTouchListener.onTouch(SourceFile:12)
at com.esri.arcgisruntime.mapping.view.MapView.onTouchEvent(SourceFile:1)
at android.view.View.dispatchTouchEvent(View.java:13694)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3243)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2924)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:739)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:2011)
at android.app.Activity.dispatchTouchEvent(Activity.java:4180)
at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:685)
at android.view.View.dispatchPointerEvent(View.java:13957)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6420)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6215)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5604)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5657)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5623)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5781)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5631)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5838)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5604)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5657)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5623)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5631)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5604)
E/AndroidRuntime: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8698)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8618)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:8571)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8956)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:239)
at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:222)
at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:8859)
at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:9030)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1280)
at android.view.Choreographer.doCallbacks(Choreographer.java:1019)
at android.view.Choreographer.doFrame(Choreographer.java:904)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1248)
at android.os.Handler.handleCallback(Handler.java:900)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8668)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)
I/Process: Sending signal. PID: 10112 SIG: 9

0 Kudos
1 Reply
tanqidi
Emerging Contributor

When using Sketcheditor. start(Geometry), there is a chance that it will crash, not every time, but I don't know where I can catch this exception to avoid a crash

0 Kudos