` Process: com.example.shibli.luxuryrider, PID: 23959
java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference
at com.example.shibli.luxuryrider.Home.requestPickupHere(Home.java:338)
at com.example.shibli.luxuryrider.Home.access$000(Home.java:96)
at com.example.shibli.luxuryrider.Home$2.onClick(Home.java:217)
at android.view.View.performClick(View.java:4848)
at android.view.View$PerformClick.run(View.java:20300)
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:5682)
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:963)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)
06-15 04:25:03.168 23959-24106/com.example.shibli.luxuryrider E/NativeCrypto: ssl=0x7f90eb6700 cert_verify_callback x509_store_ctx=0x7f7b260138 arg=0x0
06-15 04:25:03.168 23959-24106/com.example.shibli.luxuryrider E/NativeCrypto: ssl=0x7f90eb6700 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_ECDSA
`
And this the code
Hello every one please help
this the Logcat
` Process: com.example.shibli.luxuryrider, PID: 23959 java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference
06-15 04:25:03.168 23959-24106/com.example.shibli.luxuryrider E/NativeCrypto: ssl=0x7f90eb6700 cert_verify_callback x509_store_ctx=0x7f7b260138 arg=0x0 06-15 04:25:03.168 23959-24106/com.example.shibli.luxuryrider E/NativeCrypto: ssl=0x7f90eb6700 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_ECDSA ` And this the code
`@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_home); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar);
`