nullpointer exception indicates you have creater pointer and have not assigned an address to it.
- Think of the dates you used to make api call and check out for the case of invalid dates.
- You need handle the situation of invalid dates ( i.e make api calls only when the dates are valid.)
- And for the invalid dates just throw the specified exception
what should be the output in case of invalid dates ?
you need to change that date to the next proper working date
Thanks. My issue was resolved.
could you mark the post as solution so that this thread ends