From 984a5a807290d577740408b36c91fcd60c2a8de3 Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 18 Apr 2018 23:38:06 +0200 Subject: [PATCH] Fixed #364 - Sim Log Browser - Inspect (request |response) does nothing. --- .../xdstools2/client/inspector/MetadataInspectorTab.java | 3 ++- .../xdstools2/client/inspector/mvp/InspectorActivity.java | 1 + .../xdstools2/client/inspector/mvp/InspectorPresenter.java | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/MetadataInspectorTab.java b/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/MetadataInspectorTab.java index 61d2a86270..c2acb84efe 100644 --- a/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/MetadataInspectorTab.java +++ b/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/MetadataInspectorTab.java @@ -408,7 +408,8 @@ void showHistory() { } */ - QueryOrigin queryOrigin = new QueryOrigin(res.logId.getId().toString(), stepResult.section, stepResult.stepName); + String testName = (res.logId != null) ? res.logId.getId() : ""; + QueryOrigin queryOrigin = new QueryOrigin(testName, stepResult.section, stepResult.stepName); new ListingDisplay(this, dm, new TreeThing(stepTreeItem), res.logId, queryOrigin).listing(); if (data.enableActions && stepResult.toBeRetrieved.size() > 0) { diff --git a/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/mvp/InspectorActivity.java b/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/mvp/InspectorActivity.java index 8d1d982b4e..5b3371c27d 100644 --- a/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/mvp/InspectorActivity.java +++ b/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/mvp/InspectorActivity.java @@ -60,6 +60,7 @@ public void start(final AcceptsOneWidget acceptsOneWidget, final EventBus eventB view = Injector.INSTANCE.getInspectorView(); displayer = Injector.INSTANCE.getToolkitAppDisplayer(); assert(presenter != null); + assert(displayer != null); presenter.setTitle("ResultInspector"); presenter.setDataModel(place.getResults()); diff --git a/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/mvp/InspectorPresenter.java b/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/mvp/InspectorPresenter.java index 39b8a20c29..c0445e899d 100644 --- a/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/mvp/InspectorPresenter.java +++ b/xdstools2/src/main/java/gov/nist/toolkit/xdstools2/client/inspector/mvp/InspectorPresenter.java @@ -84,7 +84,7 @@ boolean isTableCellHeightAvailable() { },200); } - private void setData() { + private void setData() { GWT.log("In setData"); GWT.log("result list size is: " + results.size());