Changeset 11416 in josm for trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
- Timestamp:
- 2016-12-23T15:19:47+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r11306 r11416 202 202 if (primitive != null) { 203 203 Changeset cs = primitive.getChangeset(); 204 if (cs != null) { 205 update(cs, model.isLatest(primitive), primitive.getTimestamp(), primitive.getVersion()); 206 } 204 update(cs, model.isLatest(primitive), primitive.getTimestamp(), primitive.getVersion()); 207 205 } 208 206 } … … 219 217 /** 220 218 * Updates the content of this panel based on the changeset information given by {@code cs}. 221 * @param cs the changeset information - must not be null219 * @param cs the changeset information 222 220 * @param isLatest whether this relates to a not yet commited changeset 223 221 * @param timestamp the timestamp … … 227 225 lblInfo.setText(getInfoText(timestamp, version, isLatest)); 228 226 229 if (!isLatest ) {227 if (!isLatest && cs != null) { 230 228 User user = cs.getUser(); 231 229 String url = Main.getBaseBrowseUrl() + "/changeset/" + cs.getId(); … … 299 297 @Override 300 298 public void actionPerformed(ActionEvent e) { 301 ChangesetDialog.LaunchChangesetManager.displayChangesets(Collections.singleton(id)); 299 if (id != null) { 300 ChangesetDialog.LaunchChangesetManager.displayChangesets(Collections.singleton(id)); 301 } 302 302 if (componentToSelect != null) { 303 303 ChangesetCacheManager.getInstance().setSelectedComponentInDetailPanel(componentToSelect);
Note:
See TracChangeset
for help on using the changeset viewer.