Index: /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileDialog.java
===================================================================
--- /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileDialog.java	(revision 23749)
+++ /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileDialog.java	(revision 23750)
@@ -281,4 +281,12 @@
 	 */
 	private void updateView() {
+		if (profile == null) { // emergency exit
+			setTitle(String.format("%s: (No data)", tr("Elevation Profile")));
+			return;
+		}
+		
+		// Show name of profile in title 
+		setTitle(String.format("%s: %s", tr("Elevation Profile"), profile.getName()));
+		
 		// TODO: Offer also ft here
 		if (profile.hasElevationData()) {
Index: /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfilePanel.java
===================================================================
--- /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfilePanel.java	(revision 23749)
+++ /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfilePanel.java	(revision 23750)
@@ -186,6 +186,4 @@
 				drawProfile(g);
 				drawElevationLines(g);
-				drawHCenteredString(profile.getName(), getPlotHCenter(),
-						getPlotTop() + 2, g);
 			} else {
 				drawAlignedString(tr("(No elevation data)"), getPlotHCenter(),
