ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/conient/uk/org/iscream/cms/conient/HostDisplayPanel.java
(Generate patch)

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/HostDisplayPanel.java (file contents):
Revision 1.21 by ajm, Mon Feb 26 00:25:00 2001 UTC vs.
Revision 1.22 by ajm, Mon Feb 26 18:39:23 2001 UTC

# Line 274 | Line 274 | public class HostDisplayPanel extends JPanel {
274                      addVisibleDataComponent(extraDataJPanel, new StringDataComponent(dataKey, dataKey));
275                  }
276              }
277 <
277 >            
278              // try and update the component, if it doesn't like what it gets
279              // warn the user and set that this was an unsucessful display
280 <            try {
281 <                ((DataComponent) _components.get(dataKey)).setValue(packet.getParam(dataKey));
282 <            } catch (DataFormatException e) {
283 <                Conient.addMessage("WARNING{host display}: " + e.getMessage());
284 <                displaySucessful = false;
280 >            if(_components.containsKey(dataKey)) {
281 >                
282 >                try {
283 >                    ((DataComponent) _components.get(dataKey)).setValue(packet.getParam(dataKey));
284 >                } catch (DataFormatException e) {
285 >                    Conient.addMessage("WARNING{host display}: " + e.getMessage());
286 >                    displaySucessful = false;
287 >                }
288              }
289          }
290          return displaySucessful;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines