1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Bug 315396: EDC launch imported executable causes divide by zero exception

This commit is contained in:
John Cortell 2010-06-02 14:16:38 +00:00
parent e938acbcb4
commit 21b37f0e95

View file

@ -301,6 +301,9 @@ public abstract class AbstractCLaunchDelegate2 extends LaunchConfigurationDelega
try {
// Number of times we'll end up calling IProject.build()
final int buildCount = (buildConfigID == null) ? 1 : project.getDescription().getBuildSpec().length;
if (buildCount == 0) {
return; // the case for an imported-executable project; see bugzilla 315396
}
final int subtaskTicks = TOTAL_TICKS / buildCount;
if (buildConfigID != null) {