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

rmannibucau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/johnzon.git


The following commit(s) were added to refs/heads/master by this push:
     new 9267e3f  JOHNZON-315 avoid infinite loop when getPackage is not 
available
9267e3f is described below

commit 9267e3fd6ec508d12ce83962d407cff5d8909819
Author: Romain Manni-Bucau <rmannibu...@gmail.com>
AuthorDate: Thu Jun 4 08:02:15 2020 +0200

    JOHNZON-315 avoid infinite loop when getPackage is not available
---
 .../java/org/apache/johnzon/jsonb/DefaultPropertyVisibilityStrategy.java | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/DefaultPropertyVisibilityStrategy.java
 
b/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/DefaultPropertyVisibilityStrategy.java
index 467b563..5f59471 100644
--- 
a/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/DefaultPropertyVisibilityStrategy.java
+++ 
b/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/DefaultPropertyVisibilityStrategy.java
@@ -75,6 +75,7 @@ class DefaultPropertyVisibilityStrategy implements 
javax.json.bind.config.Proper
             if (end < 0) {
                 break;
             }
+            p = null;
             final String parentPack = name.substring(0, end);
             if (!skipGetpackage) {
                 try {

Reply via email to