mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-27 14:21:48 +01:00
by catching the appropriate exception. Apparently, if a property is configured/enabled in file Foo.cfg, e.g.: flowTimeout = 10 then the corresponding object/value in the Dictionary returned by ComponentContext.getProperties() has class type String. However, if the property is commented-out, e.g.: then the Dictionary still contains an entry for "flowTimeout", but its class type is Integer. Also, updated similar code elsewhere that was catching the generic Exception with catching more specific exception(s). Change-Id: I33ec348eb9efe3188e22cfc8cee2bb704948726d