You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is a bug in add method.
suppose call this method in another class as:
mJalaliCalendar.add(Calendar.MONTH,-1);
and suppose MONTH is "FARVARDIN".
This result in : "amount = -1" and equally amount%12 = -1.
so array index is negative!
The text was updated successfully, but these errors were encountered:
I think there is a bug in add method.
suppose call this method in another class as:
mJalaliCalendar.add(Calendar.MONTH,-1);
and suppose MONTH is "FARVARDIN".
This result in : "amount = -1" and equally amount%12 = -1.
so array index is negative!
The text was updated successfully, but these errors were encountered: