Closedown

This commit is contained in:
gac-x03da
2021-10-26 09:53:29 +02:00
parent 9e169cb085
commit f4f94a8372

View File

@@ -783,9 +783,11 @@ public class XPSSpectrum extends Panel {
private void comboPassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboPassActionPerformed
try {
scienta = (Scienta) getDevice("Scienta");
int energy = Integer.valueOf(comboPass.getSelectedItem().toString());
if (energy != scienta.getPassEnergy()){
scienta.setPassEnergy(energy);
if (scienta!=null){
int energy = Integer.valueOf(comboPass.getSelectedItem().toString());
if (energy != scienta.getPassEnergy()){
scienta.setPassEnergy(energy);
}
}
} catch (Exception ex) {
getLogger().log(Level.WARNING, null, ex);