Skip to content

Commit

Permalink
CELIX-269: Fixes issue in dependency manager when providing NULL as p…
Browse files Browse the repository at this point in the history
…roperties for a provided services
  • Loading branch information
pnoltes committed Feb 8, 2016
1 parent ea9a5a8 commit 6bf16bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dependency_manager/private/src/dm_component_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ celix_status_t component_addInterface(dm_component_pt component, char *serviceNa
dm_interface_t *interface = (dm_interface_t *) calloc(1, sizeof(*interface));
char *name = strdup(serviceName);

if (properties == NULL) {
properties = properties_create();
}

if ((properties_get(properties, (char*) CELIX_FRAMEWORK_SERVICE_VERSION) == NULL) && (serviceVersion != NULL)) {
properties_set(properties, (char*) CELIX_FRAMEWORK_SERVICE_VERSION, serviceVersion);
}
Expand Down

0 comments on commit 6bf16bd

Please sign in to comment.