Modify

Opened 11 years ago

Closed 11 years ago

#9718 closed defect (fixed)

java.lang.ArithmeticException: / by zero

Reported by: naoliv Owned by: team
Priority: normal Milestone: 14.02
Component: Core Version:
Keywords: template_report Cc:

Description

It seems that I have divided something by zero and created a black hole :-)
While searching for something I have included a nth%:0

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-02-12 19:56:27
Last Changed Author: Don-vip
Revision: 6847
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-02-12 20:52:31 +0100 (Wed, 12 Feb 2014)
Last Changed Rev: 6847

Identification: JOSM/1.5 (6847 pt_BR) Linux Debian GNU/Linux unstable (sid)
Memory Usage: 247 MB / 1756 MB (184 MB allocated, but free)
Java version: 1.7.0_51, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u51-2.4.5-2
VM arguments: [-Djava.net.useSystemProxies=true, -Dawt.useSystemAAFontSettings=on]
Dataset consistency test: No problems found

Plugin: AddrInterpolation (30277)
Plugin: Create_grid_of_ways (30277)
Plugin: FixAddresses (30277)
Plugin: ImageryCache (30277)
Plugin: OpeningHoursEditor (30235)
Plugin: PicLayer (30277)
Plugin: SimplifyArea (30277)
Plugin: buildings_tools (30277)
Plugin: editgpx (30197)
Plugin: geotools (30277)
Plugin: jts (30277)
Plugin: merge-overlap (30277)
Plugin: notes (v0.9.1)
Plugin: opendata (30277)
Plugin: pdfimport (30277)
Plugin: poly (30277)
Plugin: reverter (30277)
Plugin: tagging-preset-tester (30277)
Plugin: todo (29154)
Plugin: turnrestrictions (30277)
Plugin: undelete (30277)
Plugin: utilsplugin2 (30277)

java.lang.ArithmeticException: / by zero
	at org.openstreetmap.josm.actions.search.SearchCompiler$Nth.match(SearchCompiler.java:852)
	at org.openstreetmap.josm.actions.search.SearchAction.getSelection(SearchAction.java:508)
	at org.openstreetmap.josm.actions.search.SearchAction.search(SearchAction.java:585)
	at org.openstreetmap.josm.actions.search.SearchAction.searchWithHistory(SearchAction.java:482)
	at org.openstreetmap.josm.actions.search.SearchAction.search(SearchAction.java:469)
	at org.openstreetmap.josm.actions.search.SearchAction.actionPerformed(SearchAction.java:142)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1662)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2869)
	at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:307)
	at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:263)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2961)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2953)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2832)
	at java.awt.Component.processEvent(Component.java:6282)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:762)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1027)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:899)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:727)
	at java.awt.Component.dispatchEventImpl(Component.java:4731)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:708)
	at java.awt.EventQueue$4.run(EventQueue.java:706)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Attachments (0)

Change History (2)

comment:1 by Don-vip, 11 years ago

Milestone: 14.02

comment:2 by Don-vip, 11 years ago

Resolution: fixed
Status: newclosed

In 6848/josm:

fix #9718 - java.lang.ArithmeticException: / by zero. Closes black hole created somewhere in Brazil :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.