Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0A47DC35 for ; Sun, 4 Nov 2012 14:07:06 +0000 (UTC) Received: (qmail 65119 invoked by uid 500); 4 Nov 2012 14:07:06 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 64594 invoked by uid 500); 4 Nov 2012 14:07:04 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 64479 invoked by uid 99); 4 Nov 2012 14:07:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Nov 2012 14:07:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_DBL_REDIR X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of garydgregory@gmail.com designates 209.85.160.67 as permitted sender) Received: from [209.85.160.67] (HELO mail-pb0-f67.google.com) (209.85.160.67) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Nov 2012 14:06:58 +0000 Received: by mail-pb0-f67.google.com with SMTP id ro8so1433439pbb.6 for ; Sun, 04 Nov 2012 06:06:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=q+bzuoGxhn9KepIFAAWVpOwkvxmoQv0ogY1QYpp6nB8=; b=hSVwrq4s55aw6quIqIsCm4JQEDs6msbabhdU7dpIdKI7s/lZ5tIrxdTF0/l+FMA7KI WNt+JUCrETgk6iecoADUrOBI5WdVfrpIgnrHgm35nTI2TlDHWXTV8FUKiQYTGnB7vwe1 Cc1lLfgkZSMZiuG5xpDbQGbLvlSaVnPTDi2DZjrqSO29VOknLDBfZaUMIfcAYCGTdmSH gbr43+CSEYJfyJqWnqAtI3kON96J9RdF4BLg+HGcUN5PPsx9kPsUW64Fji7+VzMGdQRh 3rzdS5DEhtWBeY+2CN34VQrGPR253PrICog9G+XK26Satfkg+Cbh45HKqeUEZ3otKNbE 9lcQ== MIME-Version: 1.0 Received: by 10.68.192.5 with SMTP id hc5mr22823421pbc.16.1352037997737; Sun, 04 Nov 2012 06:06:37 -0800 (PST) Received: by 10.68.134.36 with HTTP; Sun, 4 Nov 2012 06:06:37 -0800 (PST) Date: Sun, 4 Nov 2012 09:06:37 -0500 Message-ID: Subject: [v2] org.apache.logging.log4j.core.Logger.log(Marker, String, Level, Message, Throwable) From: Gary Gregory To: Commons Developers List Content-Type: multipart/alternative; boundary=e89a8f64328e93f72f04cdabe046 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f64328e93f72f04cdabe046 Content-Type: text/plain; charset=UTF-8 I wonder if in: org.apache.logging.log4j.core.Logger.log(Marker, String, Level, Message, Throwable) @Override public void log(Marker marker, String fqcn, Level level, Message data, Throwable t) { if (data == null) { data = new SimpleMessage(""); } config.config.getConfigurationMonitor().checkConfiguration(); config.loggerConfig.log(getName(), marker, fqcn, level, data, t); } The null guard should be pushed all the way down to: org.apache.logging.log4j.core.impl.Log4jLogEvent.Log4jLogEvent(String, Marker, String, Level, Message, Throwable, Map, ContextStack, String, StackTraceElement, long) Which already does some constructor checks for other args. ? Gary -- E-Mail: garydgregory@gmail.com | ggregory@apache.org JUnit in Action, 2nd Ed: http://bit.ly/ECvg0 Spring Batch in Action: http://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory --e89a8f64328e93f72f04cdabe046--