Skip to content

Commit 7a4d9cb

Browse files
Review comment resolved
1 parent e63a373 commit 7a4d9cb

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

checkmarx-ast-eclipse-plugin/src/com/checkmarx/eclipse/views/CheckmarxView.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,14 @@ private Scan getLatestScanFromScanList(List<Scan> scanList) {
12051205
* on the chosen scan id
12061206
*/
12071207
private void setSelectionForProjectComboViewer() {
1208+
1209+
if(scanIdComboViewer.getCombo().getText().isEmpty()) {
1210+
PluginUtils.clearMessage(rootModel, resultsTree);
1211+
PluginUtils.showMessage(rootModel, resultsTree, PluginConstants.NO_SCAN_ID_PROVIDED);
1212+
CxLogger.info(String.format(PluginConstants.NO_SCAN_ID_PROVIDED, PluginConstants.EMPTY_STRING));
1213+
return;
1214+
}
1215+
12081216
String scanIdText = scanIdComboViewer.getCombo().getText().trim();
12091217

12101218
String[] parts = scanIdText.split("\\s+");
@@ -1213,13 +1221,6 @@ private void setSelectionForProjectComboViewer() {
12131221
}
12141222

12151223
final String scanId = scanIdText;
1216-
1217-
if(scanId.isEmpty()) {
1218-
PluginUtils.clearMessage(rootModel, resultsTree);
1219-
PluginUtils.showMessage(rootModel, resultsTree, PluginConstants.NO_SCAN_ID_PROVIDED);
1220-
CxLogger.info(String.format(PluginConstants.NO_SCAN_ID_PROVIDED, scanId));
1221-
return;
1222-
}
12231224

12241225
if (currentScanId.equals(scanId)) {
12251226
PluginUtils.clearMessage(rootModel, resultsTree);

0 commit comments

Comments
 (0)