﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7165	Exception is thrown after moving an opened image.	anonymous	team	"What steps will reproduce the problem?
 1. Open image in JOSM
 2. Move the image to some other directory
 3. Try to show the image in JOSM

After that an exception is thrown.

Instead the program should show some error report like: ""Unable to open image at '.../foto/img1.jpg'"".

Output in JOSM debug dialog:

{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-12-16 02:32:17
Last Changed Author: Don-vip
Revision: 4666
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-12-15 21:12:57 +0100 (Thu, 15 Dec 2011)
Last Changed Rev: 4666

Identification: JOSM/1.5 (4666 cs)
Memory Usage: 790 MB / 910 MB (162 MB allocated, but free)
Java version: 1.6.0_26, Sun Microsystems Inc., Java HotSpot(TM) Server VM
Operating system: Linux
Dataset consistency test: No problems found

Plugin: RoadSigns (26406)
Plugin: Tracer (26406)
Plugin: buildings_tools (26530)
Plugin: czechaddress (26509)
Plugin: editgpx (26406)
Plugin: photo_geotagging (26530)
Plugin: routes (26406)
Plugin: routing (26530)
Plugin: terracer (26406)
Plugin: turnrestrictions (26530)

java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
	at java.awt.image.BufferedImage.<init>(BufferedImage.java:312)
	at org.openstreetmap.josm.gui.layer.geoimage.ImageDisplay$LoadImageRunnable.run(ImageDisplay.java:133)
	at java.lang.Thread.run(Thread.java:662)
}}}
"	defect	closed	normal		Core	tested	fixed	template_report	
