You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "sdedic (via GitHub)" <gi...@apache.org> on 2023/10/25 21:50:56 UTC

[PR] #6622: NPE check missing. [netbeans]

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

   Checked calls to `isErrorPlaceholder` for possible null refs. Fixes #6622 .


-- 
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] #6622: NPE check missing. [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on code in PR #6624:
URL: https://github.com/apache/netbeans/pull/6624#discussion_r1373378220


##########
java/maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java:
##########
@@ -523,7 +523,7 @@ private static List<String> createMavenExecutionCommand(RunConfig config, Constr
         if (config.getReactorStyle() != RunConfig.ReactorStyle.NONE) {
             File basedir = config.getExecutionDirectory();
             MavenProject mp = NbMavenProject.getPartialProject(config.getMavenProject());
-            File projdir = NbMavenProject.isErrorPlaceholder(mp) ? basedir : mp.getBasedir();
+            File projdir = mp == null || NbMavenProject.isErrorPlaceholder(mp) ? basedir : mp.getBasedir();

Review Comment:
   Is this being cautious or did you see null here?  This would have thrown NPE in the previous release as far as I can tell.



-- 
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] #6622: NPE check missing. [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #6624:
URL: https://github.com/apache/netbeans/pull/6624#issuecomment-1781492233

   I am getting mixed messages from this PR: milestone is set to 20 while it is building on master. I was about to test the devbuild but will stop since it is not the right branch (assuming it is supposed to go into delivery?).
   
   I would personally prefer the lowest risk approach and revert the changes and prepare a new PR for NB 21 where they have some time to stabilize. For future integrations of non-trivial PRs which have possible risks of side effects, please state what kind of testing has been done before integration (example: #6597, #6533). This should be part of the review process.
   
   And I think we all can agree that we shouldn't integrate non-trival PRs anymore if they miss the deadline. NB 20 will now essentially have one week less of maven testing since RC2 can't be used for that. (its also not the first time that this happened as we know)
   
   I would also invite everyone to the netbeans channel on apache slack again, which is quite useful esp during the release phase and can be used to answer questions and get opinions quickly if time is short.


-- 
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] #6622: NPE check missing. [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on PR #6624:
URL: https://github.com/apache/netbeans/pull/6624#issuecomment-1781384614

   I'll leave you and @mbien to make the final call on this.  Given where we are in the release process, and the lack of testing in the IDE this has thrown up, I am inclined to agree with the point made at https://github.com/apache/netbeans/pull/6514#issuecomment-1775592170 and with merging #6623 
   
   Putting do not merge on both for now.


-- 
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] #6622: NPE check missing. [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on PR #6624:
URL: https://github.com/apache/netbeans/pull/6624#issuecomment-1830893452

   @sdedic seriously?! Maybe you could have a private word with @MartinBalin about the real reasons this release has been delayed rather than pulling this toxic crap on here!


-- 
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] #6622: NPE check missing. [netbeans]

Posted by "MartinBalin (via GitHub)" <gi...@apache.org>.
MartinBalin commented on PR #6624:
URL: https://github.com/apache/netbeans/pull/6624#issuecomment-1831446361

   With this PR now, I believe merge to `master` and let it be.


-- 
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] #6622: NPE check missing. [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net closed pull request #6624: #6622: NPE check missing.
URL: https://github.com/apache/netbeans/pull/6624


-- 
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] #6622: NPE check missing. [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #6624:
URL: https://github.com/apache/netbeans/pull/6624#issuecomment-1831901960

   > Is the remaining time till Jan 15 sufficient for testing acceptance ?
   
   if you merge something you should be available to stabilize the change as committer. Its just like in any other project. You don't commit something and leave for vacation. So if you and the reviewers think the time is sufficient then absolutely, lets get the revisited priming change reviewed (including the fix) and merged. Worst case is that someone reverts something again if there is no time left to fix it properly.


-- 
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] #6622: NPE check missing. [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #6624:
URL: https://github.com/apache/netbeans/pull/6624#issuecomment-1830900703

   and now imagine how long it would take if we would integrate non trivial PRs after delivery branched!
   
   Check the RC release notes if you want and list a PR with similar risks for side effects as the reverted PR.
   
   Lets try to get a release with fewer RCs next time while integrating as many PRs as possible, help is always welcome - release managers are doing this in their free time.
   
   And please stop with the passive aggressive tone and lets stay professional, if you would have followed the repeated offer to talk to us, you would know why there were delays! I am not even in the release team and am aware of it.


-- 
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] #6622: NPE check missing. [netbeans]

Posted by "sdedic (via GitHub)" <gi...@apache.org>.
sdedic commented on PR #6624:
URL: https://github.com/apache/netbeans/pull/6624#issuecomment-1781577421

   my bad, was developed from `delivery` branch, but forgot to set the target appropriately.


-- 
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] #6622: NPE check missing. [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on PR #6624:
URL: https://github.com/apache/netbeans/pull/6624#issuecomment-1839208488

   @sdedic to add something from a release perspective, it's a shame that reverts on delivery have to go in to master at all, but they have to with the strategy we have.  However, I see no reason the revised PR could not have been opened as soon as the sync PR had been merged that week, and was somewhat surprised it wasn't.  We ask people to be aware of the potential for the introduction of merge conflicts between each weekly sync, and to leave out really big refactoring (eg. modules / cluster moves) during releases.  Any concern. just ask, and dealing with minor merge conflicts isn't a big issue.  If the wording is unclear, let's change it! :smile:


-- 
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] #6622: NPE check missing. [netbeans]

Posted by "sdedic (via GitHub)" <gi...@apache.org>.
sdedic commented on PR #6624:
URL: https://github.com/apache/netbeans/pull/6624#issuecomment-1830836497

   Good. So from this decision and fix rejection, it took almost 5 weeks to reach a votable distribution. 


-- 
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] #6622: NPE check missing. [netbeans]

Posted by "sdedic (via GitHub)" <gi...@apache.org>.
sdedic commented on PR #6624:
URL: https://github.com/apache/netbeans/pull/6624#issuecomment-1831393000

   Well; one one hand, one is told not to destabilize `delivery` - understandable. And a reminder - I did not say a word about discarding those PRs from the release. On the other hand, one is reminded not to diverge `master` too much, which is ALSO understandable bcs of the delivery merging. So I naturally waited.
   
   For these fixes, the delay is 5 weeks - since I did not reintegrated  #6514 to `master,`, so 5 weeks less testing. Should I fix that now ? Will the 


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