Skip to content

Commit c5cf3cd

Browse files
committed
ST6RI-178 Added error message for missing branches in load command
1 parent 0a4d336 commit c5cf3cd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

org.omg.sysml.interactive/src/org/omg/sysml/interactive/SysMLInteractive.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ private String load(RemoteProject remoteProject, UUID branchId) {
494494
}
495495

496496
private String load(RemoteBranch branch) {
497+
if (branch == null) {
498+
return "ERROR:Branch doesn't exist";
499+
}
500+
497501
System.out.println("Selected branch " + branch.getName());
498502

499503
if (!tracker.isLibraryTracked()) {

0 commit comments

Comments
 (0)