Return-Path: X-Original-To: apmail-shindig-issues-archive@www.apache.org Delivered-To: apmail-shindig-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 42C6710A0B for ; Thu, 17 Oct 2013 10:57:59 +0000 (UTC) Received: (qmail 24518 invoked by uid 500); 17 Oct 2013 10:57:58 -0000 Delivered-To: apmail-shindig-issues-archive@shindig.apache.org Received: (qmail 23448 invoked by uid 500); 17 Oct 2013 10:57:47 -0000 Mailing-List: contact issues-help@shindig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@shindig.apache.org Delivered-To: mailing list issues@shindig.apache.org Received: (qmail 23384 invoked by uid 99); 17 Oct 2013 10:57:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Oct 2013 10:57:44 +0000 Date: Thu, 17 Oct 2013 10:57:44 +0000 (UTC) From: "Andreas Kohn (JIRA)" To: issues@shindig.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SHINDIG-1941) BeanJsonConverter fails with NullPointerException for empty ExtendableBeans MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Andreas Kohn created SHINDIG-1941: ------------------------------------- Summary: BeanJsonConverter fails with NullPointerException for empty ExtendableBeans Key: SHINDIG-1941 URL: https://issues.apache.org/jira/browse/SHINDIG-1941 Project: Shindig Issue Type: Bug Affects Versions: 2.5.0-update1 Reporter: Andreas Kohn When trying to deserialize an empty JSON object into an ExtendableBean a NullPointerException happens: {noformat} java.lang.NullPointerException at org.apache.shindig.protocol.conversion.BeanJsonConverter.convertToClass(BeanJsonConverter.java:274) at org.apache.shindig.protocol.conversion.BeanJsonConverter.convertToObject(BeanJsonConverter.java:180) at org.apache.shindig.protocol.conversion.BeanJsonConverter.convertToObject(BeanJsonConverter.java:133) at org.apache.shindig.protocol.conversion.BeanJsonConverter.convertToObject(BeanJsonConverter.java:127) {noformat} See attached patch for test and fix. -- This message was sent by Atlassian JIRA (v6.1#6144)