/
ArrayList d = new ArrayList();
Date d1 = new Date(2023,5,29);
Date d2 = new Date(2023,5,28);
Date d3 = new Date(2023,5,27);
d.add(d1);
d.add(d2);
d.add(d3);
datePicker.highlightDates(d);
/
this code throws a "java.lang.NullPointerException: Attempt to invoke virtual method 'void com.squareup.timessquare.CalendarPickerView.highlightDates(java.util.Collection)' on a null object reference"
How can I fix it?
also, how can I choose the highlight color?
/ ArrayList d = new ArrayList();
Date d1 = new Date(2023,5,29);
Date d2 = new Date(2023,5,28);
Date d3 = new Date(2023,5,27);
d.add(d1);
d.add(d2);
d.add(d3);
datePicker.highlightDates(d);
/
this code throws a "java.lang.NullPointerException: Attempt to invoke virtual method 'void com.squareup.timessquare.CalendarPickerView.highlightDates(java.util.Collection)' on a null object reference"
How can I fix it?
also, how can I choose the highlight color?