NS_LOG(DEBUG, "NSProviderSelectTopics - IN");\r
pthread_mutex_lock(&nsInitMutex);\r
\r
- if(!consumerId || !topicName)\r
+ if(!consumerId || !topicName || !NSGetPolicy())\r
{\r
+ NS_LOG(DEBUG, "consumer id should be set for topic subscription or "\r
+ "Configuration must set to true.");\r
pthread_mutex_unlock(&nsInitMutex);\r
- NS_LOG(DEBUG, "consumer id should be set for topic subscription");\r
return NS_FAIL;\r
}\r
\r
NS_LOG(DEBUG, "NSProviderUnselectTopics - IN");\r
pthread_mutex_lock(&nsInitMutex);\r
\r
- if(!consumerId || !topicName)\r
+ if(!consumerId || !topicName || !NSGetPolicy())\r
{\r
- NS_LOG(DEBUG, "consumer id should be set for topic subscription");\r
+ NS_LOG(DEBUG, "consumer id should be set for topic subscription or "\r
+ "Configuration must set to true.");\r
pthread_mutex_unlock(&nsInitMutex);\r
return NS_FAIL;\r
}\r