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; |