You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2018/01/11 08:27:45 UTC

[incubator-plc4x] 01/03: fixed one more builder bug

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch refactoring/java_generify
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git

commit b86dc4211a2a46e0a40d34f3a150380241e2244b
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Mon Jan 8 09:45:00 2018 +0100

    fixed one more builder bug
---
 .../main/java/org/apache/plc4x/java/api/messages/PlcWriteRequest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/PlcWriteRequest.java b/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/PlcWriteRequest.java
index 7d8a9e9..c663be5 100644
--- a/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/PlcWriteRequest.java
+++ b/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/PlcWriteRequest.java
@@ -72,7 +72,7 @@ public interface PlcWriteRequest extends PlcRequest {
         }
 
         private void checkType(Class dataType) {
-            if (firstType != null) {
+            if (firstType == null) {
                 firstType = dataType;
             }
             if (firstType != dataType) {

-- 
To stop receiving notification emails like this one, please contact
"commits@plc4x.apache.org" <co...@plc4x.apache.org>.