|
@@ -268,9 +268,10 @@ public class AddMovieController extends Controller {
|
|
|
System.out.println("\t\t\t-Type: " + part.toString());
|
|
|
|
|
|
if (part instanceof ComboBox) {
|
|
|
- System.out.println("\t\t\t\t Text: " + ((ComboBox) part).getValue().toString());
|
|
|
+ //System.out.println("\t\t\t\t Text: " + ((ComboBox) part).getValue().toString());
|
|
|
if (part.getId().equals("actorName")) {
|
|
|
- name = ((ComboBox) part).getValue().toString();
|
|
|
+ if (((ComboBox) part).getValue() != null)
|
|
|
+ name = ((ComboBox) part).getValue().toString();
|
|
|
}
|
|
|
}
|
|
|
|