keyrunHORNET / date_picker_converter

Nepali Date Picker with Date conversion from BS to AD and vice-versa
Apache License 2.0
36 stars 23 forks source link

java.lang.NullPointerException: Attempt to read from null array #2

Closed itsme801 closed 6 years ago

itsme801 commented 6 years ago

I used your code to display the a simple datepicker but it says, capture

Can you figure out why is this issue seen ? I've not added anything just simple datepicker only

keyrunHORNET commented 6 years ago

send me a snippet of your code too.

itsme801 commented 6 years ago

test

keyrunHORNET commented 6 years ago

let me check and get back to you

itsme801 commented 6 years ago

In that screenshot i forgot to include, Calendar now = Calendar.getInstance(); [included in my code though]

keyrunHORNET commented 6 years ago

Try dpd.show() on user click event instead. and let me know after

itsme801 commented 6 years ago

No its not working now also, I've called the method in menuItem onclick, but the app crashed with the same issue

itsme801 commented 6 years ago

Can you suggest any solutions?

keyrunHORNET commented 6 years ago

i'll let you know, I am kind of Busy right now. Meanwhile you can fork this repo and play around with code to fit your need.

rokayaHK commented 6 years ago

Hello @itsme801 , have you solved the issue?? I am facing the same issue.

itsme801 commented 6 years ago

@rokayaHK no, i tried everything possible, but the issue is not solved

keyrunHORNET commented 6 years ago

array thats shown null is actually initialized in the constructor of DateConverter. That should not happen. I would like to have a look at your project. Share in Github or mail me the ZIP. If its possible.