Community
Participate
Working Groups
If you attempt to compare with another patch set after disconnecting to an existing remote, you get an NPE. java.lang.NullPointerException at org.eclipse.mylyn.internal.gerrit.core.remote.PatchSetContentRemoteFactory.pull(PatchSetContentRemoteFactory.java:66) at org.eclipse.mylyn.internal.gerrit.core.remote.PatchSetContentCompareRemoteFactory.pull(PatchSetContentCompareRemoteFactory.java:38) at org.eclipse.mylyn.internal.gerrit.core.remote.PatchSetContentCompareRemoteFactory.pull(PatchSetContentCompareRemoteFactory.java:1) at org.eclipse.mylyn.reviews.core.spi.remote.emf.RemoteEmfConsumer.pull(RemoteEmfConsumer.java:164) at org.eclipse.mylyn.reviews.core.spi.remote.JobRemoteService$1.run(JobRemoteService.java:60) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
This issue was introduced when solving the issue of how to deal with patch sets when only one commit was not available. The current code now absorbs and logs the exception but that doesn't work for some cases where the issue was caused by no connectivity.
https://git.eclipse.org/r/14077 (Please ignore spurious test exception.)
Merged https://git.eclipse.org/r/14077.