catch errors on SEB Settings value init for every single value
This commit is contained in:
		
							parent
							
								
									88b2311e08
								
							
						
					
					
						commit
						40102be281
					
				
					 1 changed files with 16 additions and 8 deletions
				
			
		|  | @ -293,14 +293,22 @@ public final class ViewContext { | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void setValuesToInputFields(final Collection<ConfigurationValue> values) { |     void setValuesToInputFields(final Collection<ConfigurationValue> values) { | ||||||
|  |         try { | ||||||
|             this.inputFieldMapping |             this.inputFieldMapping | ||||||
|                     .values() |                     .values() | ||||||
|                     .forEach(field -> { |                     .forEach(field -> { | ||||||
|  |                         try { | ||||||
|                             final ConfigurationValue initValue = field.initValue(values); |                             final ConfigurationValue initValue = field.initValue(values); | ||||||
|                             if (initValue != null) { |                             if (initValue != null) { | ||||||
|                                 this.valueChangeListener.notifyGUI(this, field.getAttribute(), initValue); |                                 this.valueChangeListener.notifyGUI(this, field.getAttribute(), initValue); | ||||||
|                             } |                             } | ||||||
|  |                         } catch (final Exception e) { | ||||||
|  |                             log.error("Failed to initialize SEB setting: {}", field.getAttribute(), e); | ||||||
|  |                         } | ||||||
|                     }); |                     }); | ||||||
|  |         } catch (final Exception e) { | ||||||
|  |             log.error("Unexpected error while initialize SEB settings: ", e); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** Removes all registered InputFields with the given attribute ids |     /** Removes all registered InputFields with the given attribute ids | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 anhefti
						anhefti