You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/10/06 04:26:00 UTC

[jira] [Work logged] (LANG-1544) MethodUtils.invokeMethod NullPointerException in case of null in args list

     [ https://issues.apache.org/jira/browse/LANG-1544?focusedWorklogId=495710&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-495710 ]

ASF GitHub Bot logged work on LANG-1544:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Oct/20 04:25
            Start Date: 06/Oct/20 04:25
    Worklog Time Spent: 10m 
      Work Description: pixelr commented on pull request #583:
URL: https://github.com/apache/commons-lang/pull/583#issuecomment-704019077


   > Is there example user-side codes which can lead to NPE before this pr?
   
   @XenoAmess I took this a first good issue to fix. But, when I tried reproducing it, I am not able to do so. I have asked the reporter on JIRA for info on this. If we don't find a real use case, will close the PR


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 495710)
    Time Spent: 1h 20m  (was: 1h 10m)

> MethodUtils.invokeMethod NullPointerException in case of null in args list
> --------------------------------------------------------------------------
>
>                 Key: LANG-1544
>                 URL: https://issues.apache.org/jira/browse/LANG-1544
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.reflect.*
>    Affects Versions: 3.10
>            Reporter: Peter Nagy
>            Priority: Critical
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> MethodUtils:774
>  
> if (classArray[offset].equals(toClassArray[offset])) {
>  continue;
> } else if (ClassUtils.isAssignable(classArray[offset], toClassArray[offset], true)
>  
> cause NPE if classArray[offset] is null. Can you please extend the if condition with a null check, like this?
>  
> if (classArray[offset] != null && classArray[offset].equals(toClassArray[offset]))



--
This message was sent by Atlassian Jira
(v8.3.4#803005)