question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setDate is not working properly

See original GitHub issue

App crashes when you set a date programmatically and tries to change value.

lazyDatePicker.setDate(new Date());

java.lang.NullPointerException: Attempt to invoke interface method ‘void android.text.TextWatcher.beforeTextChanged(java.lang.CharSequence, int, int, int)’ on a null object reference

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MihirPalkhiwalacommented, Jun 28, 2019

Fixed now. Excellent. 😃

0reactions
lopspowercommented, Jun 28, 2019

It’s now fix on the last version 1.0.5:

implementation 'com.mikhaellopez:lazydatepicker:1.0.5'

Thx for you feeback Can you confirm it’s now ok for you ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript: setDate(DATE + day) not update month
I think I see what's the trouble. function addDay() { var moreDay = new Date(); var act = new Date(2013, 7, 3); moreDay.setDate(act....
Read more >
setDate() does not update the datepicker view #399 - GitHub
REPRO STEPS Using the UI, select datepicker then select a date. Use datepicker API to set date to a different date using setDate...
Read more >
JavaScript Date setDate() Method - W3Schools
setDate () sets the day of the month of a date. Example 2. Set the day of the month to the last day...
Read more >
Date.prototype.setDate() - JavaScript - MDN Web Docs - Mozilla
The setDate() method changes the day of the month of a given Date instance, based on local time. To instead change the day...
Read more >
Cannot set date on UIDatePicker | Apple Developer Forums
So you are now saying that your problem is that you can't set the date in the date picker programmatically to anything other...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found