You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "junichi11 (via GitHub)" <gi...@apache.org> on 2024/12/13 05:40:41 UTC

[PR] Prevent NPE [netbeans]

junichi11 opened a new pull request, #8046:
URL: https://github.com/apache/netbeans/pull/8046

   - Do not return `null` in `getOccurrences()`
   - See GH-8028
   
   ```diff
   @@ -155,7 +146,7 @@ List<OffsetRange> processImpl(ParserResult info, Document doc, int caretPosition
    
            Map<OffsetRange, ColoringAttributes> highlights = finder.getOccurrences();
    
   -        return highlights == null ? null : new ArrayList<OffsetRange>(highlights.keySet());
   +        return List.copyOf(highlights.keySet());
   ```


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Prevent NPE [netbeans]

Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 merged PR #8046:
URL: https://github.com/apache/netbeans/pull/8046


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists