Buggy code:
@ Component ( name = "dexels.hazelcast.service" , immediate = true , configurationPolicy = ConfigurationPolicy . REQUIRE , service = { HazelcastService . class , HazelcastServiceMXBean . class } ) public class OSGiHazelcastServiceImpl implements HazelcastService , HazelcastServiceMXBean , InstanceListener , MembershipListener { private Integer clusterPort ; private String clusterName ; private String [ ] clusterMembers ; private HazelcastInstance instance ; private Date joinDate ; private boolean available = false ; private String instanceName ; private String uniqueName ; private String hostName ; private Integer externalPort ; private String localInterface ; private static final Logger logger = LoggerFactory . getLogger ( OSGiHazelcastServiceImpl . class ) ; @ Override @ Activate public void activate ( Map < String , Object > settings ) { try { Config config = new Config ( ) ; if ( settings != null ) { clusterPort = ( ( Integer ) ( settings . get ( "cluster.port" ) ) ) ; clusterName = ( ( String ) ( settings . get ( "cluster.name" ) ) ) ; instanceName = ( ( String ) ( settings . get ( "cluster.instance" ) ) ) ; clusterMembers = ( ( String [ ] ) ( settings . get ( "cluster.members" ) ) ) ; hostName = ( ( String ) ( settings . get ( "cluster.hostName" ) ) ) ; externalPort = ( ( Integer ) ( settings . get ( "cluster.externalPort" ) ) ) ; localInterface = ( ( String ) ( settings . get ( "cluster.interface" ) ) ) ; uniqueName = ( ( clusterName ) + "//" ) + ( instanceName ) ; } if ( ( clusterPort ) != null ) { config . getNetworkConfig ( ) . setPort ( clusterPort ) ; } if ( ( localInterface ) == null ) { localInterface = "0.0.0.0" ; } config . setProperty ( "hazelcast.logging.type" , "slf4j" ) ; config . getNetworkConfig ( ) . getInterfaces ( ) . addInterface ( localInterface ) ; <START_BUG> if ( settings != null ) { <END_BUG> configureMulticast ( config ) ; } else { configureIp ( config ) ; } instance = Hazelcast . newHazelcastInstance ( config ) ; instance . getCluster ( ) . addMembershipListener ( this ) ; instance . addInstanceListener ( this ) ; joinDate = new Date ( ) ; available = true ; } catch ( Exception e ) { OSGiHazelcastServiceImpl . logger . error ( "Hazelcast<seq2seq4repair_space>config<seq2seq4repair_space>error:<seq2seq4repair_space>" , e ) ; } } private void configureMulticast ( Config config ) throws UnknownHostException { } private void configureIp ( Config config ) throws UnknownHostException { } @ Override @ Deactivate public void deactivate ( ) { } @ Override public String getClusterOverview ( ) { } @ Override public String getRegisteredCollections ( ) { } @ Override public int getMulticastPort ( ) { } @ Override public Date getJoinDate ( ) { } @ Override public boolean isAvailable ( ) { } @ Override public HazelcastInstance getHazelcastInstance ( ) { } @ Override public String getName ( ) { } @ Override public int getClusterSize ( ) { } @ Override public ILock getLock ( Serializable lockObject ) { } @ Override public Map getMap ( String identifier ) { } @ Override public Member oldestMember ( ) { } @ Override public void activate ( String instanceName ) throws Exception { } @ Override public Set getSet ( String name ) { } @ Override public boolean isActivated ( ) { } @ Override public String getInstanceName ( ) { } @ Override public void instanceCreated ( InstanceEvent arg0 ) { } @ Override public void instanceDestroyed ( InstanceEvent arg0 ) { } @ Override public void memberAdded ( MembershipEvent arg0 ) { } @ Override public void memberRemoved ( MembershipEvent arg0 ) { } }

Fix:
if ( ( clusterMembers ) == null ) {