File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/woehlke/java/simpleworklist/domain Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -187,15 +187,15 @@ protected UserSessionBean updateUserSession(UserSessionBean userSession){
187
187
188
188
protected Project addProjectFromTaskToModel (Task task , Model model ){
189
189
Project thisProject ;
190
- if (task .getProject () == null || task .getProject ().getId () == 0L ) {
190
+ if (task .getProject () == null || task .getProject ().getId () == null || task . getProject (). getId () == 0L ) {
191
191
thisProject = new Project ();
192
192
thisProject .setId (0L );
193
193
} else {
194
194
thisProject = task .getProject ();
195
195
}
196
196
model .addAttribute ("thisProject" , thisProject );
197
197
Project lastProject ;
198
- if (task .getLastProject () == null || task .getLastProject ().getId () == 0L ) {
198
+ if (task .getLastProject () == null || task .getLastProject ().getId () == null || task . getLastProject (). getId () == 0L ) {
199
199
lastProject = new Project ();
200
200
lastProject .setId (0L );
201
201
} else {
You can’t perform that action at this time.
0 commit comments