This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 201110 - Division by zero in SplashPainter.addToMaxSteps
Summary: Division by zero in SplashPainter.addToMaxSteps
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 19:09 UTC by Jesse Glick
Modified: 2011-08-28 14:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-08-18 19:09:52 UTC
WARNING [org.netbeans.core.modules]
java.lang.ArithmeticException: / by zero
	at org.netbeans.core.startup.Splash$SplashPainter.addToMaxSteps(Splash.java:540)
	at org.netbeans.core.startup.Splash$SplashPainter.access$000(Splash.java:301)
	at org.netbeans.core.startup.Splash.addToMaxSteps(Splash.java:227)
	at org.netbeans.core.startup.NbEvents.logged(NbEvents.java:203)
[catch] at org.netbeans.Events.log(Events.java:166)
	at org.netbeans.core.startup.ModuleList$ReadInitial.run(ModuleList.java:1576)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:566)
	at org.netbeans.core.startup.ModuleList.readInitial(ModuleList.java:171)
	at org.netbeans.core.startup.ModuleSystem.readList(ModuleSystem.java:280)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:171)
	at org.netbeans.core.startup.Main.start(Main.java:308)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
	at java.lang.Thread.run(Thread.java:662)
Comment 1 Jesse Glick 2011-08-19 19:36:29 UTC
Conspicuous stack trace on every startup, needs to be fixed.
Comment 2 Jaroslav Tulach 2011-08-27 08:22:09 UTC
ergonomics#67a159dc938e
Comment 3 Quality Engineering 2011-08-28 14:02:05 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/67a159dc938e
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #201110: Prevent division by zero. When adjusting the progress, first of all multiply and only then divide.