Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ public final class IotHubReceiveTask implements Runnable
public IotHubReceiveTask(IotHubTransport transport)
{


if (transport == null)
{

logger.LogError("IotHubReceiveTask constructor called with null value for parameter transport");
throw new IllegalArgumentException("Parameter 'transport' must not be null");
}

// Codes_SRS_IOTHUBRECEIVETASK_11_001: [The constructor shall save the transport.]
this.transport = transport;

logger.LogError("IotHubReceiveTask constructor called with null value for parameter transport");
}

public void run()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ public final class IotHubSendTask implements Runnable
public IotHubSendTask(IotHubTransport transport)
{
if (transport == null)
{

logger.LogError("IotHubSendTask constructor called with null value for parameter transport");
throw new IllegalArgumentException("Parameter 'transport' must not be null");
}

// Codes_SRS_IOTHUBSENDTASK_11_001: [The constructor shall save the transport.]
this.transport = transport;

logger.LogError("IotHubSendTask constructor called with null value for parameter transport");
}

public void run()
Expand Down