Skip to content
Snippets Groups Projects
Commit e77b8a22 authored by Nicole Merkle's avatar Nicole Merkle
Browse files

No commit message

No commit message
parent f9c8d9fd
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,8 @@ public class DataAccessImpl implements DataAccess{ ...@@ -131,7 +131,8 @@ public class DataAccessImpl implements DataAccess{
if(instance.equals("User")) { if(instance.equals("User")) {
List<User> users = pAgent.getAllUsers(); List<User> users = pAgent.getAllUsers();
for(User ur : users) { for(User ur : users) {
roles.add((String)ur.getProperty(Activator.USER_SPACE+"userRole")); if(ur != null && (String)ur.getProperty(Activator.USER_SPACE+"userRole") != null)
roles.add((String)ur.getProperty(Activator.USER_SPACE+"userRole"));
} }
for(User u : users) { for(User u : users) {
String filter = ((String)u.getProperty(Activator.USER_SPACE+"username")).replace("_", " "); String filter = ((String)u.getProperty(Activator.USER_SPACE+"username")).replace("_", " ");
......
...@@ -133,7 +133,8 @@ public class AddNewPersonController implements Button.ClickListener, Window.Clos ...@@ -133,7 +133,8 @@ public class AddNewPersonController implements Button.ClickListener, Window.Clos
box.setDescription(enumObj.getDescription()); box.setDescription(enumObj.getDescription());
// Create ComboBox with enum objects and add to form // Create ComboBox with enum objects and add to form
for (String item : enumObj.getValues()) { for (String item : enumObj.getValues()) {
box.addItem(item); // if(item != null)
box.addItem(item);
} }
box.setImmediate(true); box.setImmediate(true);
if (enumObj.isRequired()) { if (enumObj.isRequired()) {
......
...@@ -196,9 +196,10 @@ public class UccUI extends Application { ...@@ -196,9 +196,10 @@ public class UccUI extends Application {
pwd.setValue(u.getPassword()); pwd.setValue(u.getPassword());
} }
} }
} else { }
getMainWindow().showNotification(res.getString("create.account"), Notification.TYPE_HUMANIZED_MESSAGE); // else {
} // getMainWindow().showNotification(res.getString("create.account"), Notification.TYPE_HUMANIZED_MESSAGE);
// }
login = new Button(res.getString("login.label")); login = new Button(res.getString("login.label"));
hl.addComponent(login); hl.addComponent(login);
hl.setComponentAlignment(login, Alignment.BOTTOM_RIGHT); hl.setComponentAlignment(login, Alignment.BOTTOM_RIGHT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment