Fix merging of access sections
If the same access section is specified multiple times when editing the access rights, they need to be merged on save. The merging was done incorrectly so that null was added as permission. This caused a NullPointerException and the save of the access rights failed. Change-Id: Ia70c2199fa6c07799ebb325e3391818956248e72 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -119,7 +119,7 @@ public class AccessSection implements Comparable<AccessSection> {
|
||||
if (dst != null) {
|
||||
dst.mergeFrom(src);
|
||||
} else {
|
||||
permissions.add(dst);
|
||||
permissions.add(src);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user