-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create MovieTitles.java #2
base: master
Are you sure you want to change the base?
Conversation
PR Summary
|
|
||
private Client client; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider making the 'movieTitles' variable non-static and initialize it in the constructor to avoid potential issues with multiple instances of the class.
|
||
//first, get the first page and the number of pages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding input validation for the 'title' parameter to ensure it is not null or empty.
//append the movies in the first page | ||
appendMoviesList(movies.getMovies()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider checking if 'movies.getMovies()' is not null before calling 'appendMoviesList' to avoid potential NullPointerException.
movies= getMovies(title,i); | ||
appendMoviesList(movies.getMovies()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider checking if 'movies.getMovies()' is not null before calling 'appendMoviesList' to avoid potential NullPointerException.
No description provided.