Revision 31524 trunk/extensions/extGraph/src/org/gvsig/graph/gui/ServiceAreaControlPanel.java
ServiceAreaControlPanel.java | ||
---|---|---|
420 | 420 |
PluginServices.getText(null, "Line") + " " + (i+1)); |
421 | 421 |
return; |
422 | 422 |
} |
423 |
double[] costs = NetworkUtils.string2doubleArray(aux, ","); |
|
424 |
Arrays.sort(costs); |
|
423 |
double[] costs = null; |
|
424 |
try { |
|
425 |
costs = NetworkUtils.string2doubleArray(aux, ","); |
|
426 |
Arrays.sort(costs); |
|
427 |
} |
|
428 |
catch (NumberFormatException e) { |
|
429 |
JOptionPane.showMessageDialog((Component) PluginServices.getMainFrame(), |
|
430 |
PluginServices.getText(null, "please_introduce_some_costs")); |
|
431 |
return; |
|
432 |
} |
|
425 | 433 |
|
434 |
|
|
426 | 435 |
solver.setSourceFlag(flags[i]); |
427 | 436 |
long t1 = System.currentTimeMillis(); |
428 | 437 |
solver.setExploreAllNetwork(true); |
Also available in: Unified diff