Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check availbility #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add check availbility #5

wants to merge 1 commit into from

Conversation

infaddil
Copy link

Fixed at line 1127 & 1626, prob code: String[] time1 = list.get(i).gettime().split("-"); , error: Cannot invoke "String.split(String)" because the return value of "Room.gettime()" is null. Solution: check if the value returned by list.get(i).gettime() is null before calling the split() method. Reason: the call to list.get(i).gettime() is returning a null value, and trying to call the split method on a null object is not allowed. check if the value returned by list.get(i).gettime() is null before calling the split() method helps. Now can check the availability of the room by having pop up saying "The slot is available"

Fixed at line 1127 & 1626, prob code: String[] time1 = list.get(i).gettime().split("-"); , error: Cannot invoke "String.split(String)" because the return value of "Room.gettime()" is null. Solution: check if the value returned by list.get(i).gettime() is null before calling the split() method. Reason: the call to list.get(i).gettime() is returning a null value, and trying to call the split method on a null object is not allowed. check if the value returned by list.get(i).gettime() is null before calling the split() method helps. Now can check the availability of the room by having pop up saying "The slot is available"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant