Hi!
I created a few custom properties in KM but now when I want to set values in the properties using the following code, I always get an error:
IPropertyName propertyName = new PropertyName("namespace", "property");
IProperty property = resource.getProperty(propertyName);
IMutableProperty mutableProperty = property.getMutable();
mutableProperty.setStringValue("08/15");
Although the property exists I get a NullPointerException after the getProperty-method. I found out when I change the property manually, after that the setStringValue works.
Do I have to initialize the custom property somehow? If yes, how can I do that programatically?
Thanks in advance.
Timo