DaanHoogland commented on code in PR #7149:
URL: https://github.com/apache/cloudstack/pull/7149#discussion_r1098403502
##########
server/src/main/java/com/cloud/projects/ProjectManagerImpl.java:
##########
@@ -656,7 +656,14 @@ public Project updateProject(final long projectId, final
String displayText, fin
Transaction.execute(new
TransactionCallbackWithExceptionNoReturn<ResourceAllocationException>() {
@Override
public void doInTransactionWithoutResult(TransactionStatus status)
throws ResourceAllocationException {
- if (displayText != null) {
+ if (displayText != null && name != null) {
Review Comment:
please consider what if name is null then still displayText can be null or
not, both are no dealt with in the else clause.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]