Merge "Fix putTopic hook firing"

This commit is contained in:
Dave Borowitz 2015-11-11 19:19:21 +00:00 committed by Gerrit Code Review
commit 2df725626c

View File

@ -101,8 +101,8 @@ public class PutTopic implements RestModifyView<ChangeResource, Input>,
@Override
public void updateChange(ChangeContext ctx) throws OrmException {
change = ctx.getChange();
String newTopicName = Strings.nullToEmpty(input.topic);
String oldTopicName = Strings.nullToEmpty(change.getTopic());
newTopicName = Strings.nullToEmpty(input.topic);
oldTopicName = Strings.nullToEmpty(change.getTopic());
if (oldTopicName.equals(newTopicName)) {
return;
}