Soru & Cevap

Logcat Hataa-Acil

22.05.2015 - 05:47

Merhaba; Ben android de dinamik olarak çizgi çizdirmeye çalıştım uzun uğraşlar sonucunda...Şu an kodda çizgi çiziyor ancak ilk çizgiyi çizdiğim anda hata veriyor. Lütfen yardım edin. LogCat hatası: 05-22 05:45:56.635: E/AndroidRuntime(13077): FATAL EXCEPTION: main 05-22 05:45:56.635: E/AndroidRuntime(13077): Process: com.example.slicedenemee, PID: 13077 05-22 05:45:56.635: E/AndroidRuntime(13077): java.lang.NullPointerException 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.graphics.Canvas.drawLine(Canvas.java:931) 05-22 05:45:56.635: E/AndroidRuntime(13077): at com.example.slicedenemee.MainActivity$DrawView.onTouchEvent(MainActivity.java:111) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.View.dispatchTouchEvent(View.java:7782) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2322) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2027) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2322) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2027) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2322) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2027) 05-22 05:45:56.635: E/AndroidRuntime(13077): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2112) 05-22 05:45:56.635: E/AndroidRuntime(13077): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1544) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.app.Activity.dispatchTouchEvent(Activity.java:2491) 05-22 05:45:56.635: E/AndroidRuntime(13077): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2060) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.View.dispatchPointerEvent(View.java:7973) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4392) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4263) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3809) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3859) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3828) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3935) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3836) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3992) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3809) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3859) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3828) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3836) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3809) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6124) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6104) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6058) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6254) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.os.MessageQueue.nativePollOnce(Native Method) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.os.MessageQueue.next(MessageQueue.java:138) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.os.Looper.loop(Looper.java:150) 05-22 05:45:56.635: E/AndroidRuntime(13077): at android.app.ActivityThread.main(ActivityThread.java:5307) 05-22 05:45:56.635: E/AndroidRuntime(13077): at java.lang.reflect.Method.invokeNative(Native Method) 05-22 05:45:56.635: E/AndroidRuntime(13077): at java.lang.reflect.Method.invoke(Method.java:515) 05-22 05:45:56.635: E/AndroidRuntime(13077): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:831) 05-22 05:45:56.635: E/AndroidRuntime(13077): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:647) 05-22 05:45:56.635: E/AndroidRuntime(13077): at dalvik.system.NativeStart.main(Native Method) bu şekilde...Lütfen nerede hatm olduğuunu ya da neye bakmam gerektiğini söyleyebilir misiniz?Şimdiden teşekkürler...

7 Görüntülenme

1 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

picture-12234-1541016205.jpg
ikasapoglu
22.05.2015 - 09:07
Boş bir değeri kullanmaya çalışıyorsunuz, kodlarınızı görebilir miyim ?