Have Rocket.setFlightConfigurationName honor the DEFAULT_NAME.
This commit is contained in:
parent
161caceba0
commit
4cc3485fa0
@ -619,7 +619,7 @@ public class Rocket extends RocketComponent {
|
|||||||
*/
|
*/
|
||||||
public void setFlightConfigurationName(String id, String name) {
|
public void setFlightConfigurationName(String id, String name) {
|
||||||
checkState();
|
checkState();
|
||||||
if (name == null || name.equals("")) {
|
if (name == null || name.equals("") || DEFAULT_NAME.equals(name)) {
|
||||||
flightConfigurationNames.remove(id);
|
flightConfigurationNames.remove(id);
|
||||||
} else {
|
} else {
|
||||||
flightConfigurationNames.put(id, name);
|
flightConfigurationNames.put(id, name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user