-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JBIDE-20043] Do not collapse tree when deleting a resource #662
[JBIDE-20043] Do not collapse tree when deleting a resource #662
Conversation
this.viewer = (StructuredViewer) viewer; | ||
this.viewer = (TreeViewer) viewer; | ||
if(input != null) { | ||
input.removeListener(connectionListener); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if connectionListener is null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
ae283d3
to
e5f11e8
Compare
e5f11e8
to
bb577b9
Compare
I still have the NPE: java.lang.NullPointerException
at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.refreshGrouping(OpenShiftExplorerContentProvider.java:83)
at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.handleConnectionChanged(OpenShiftExplorerContentProvider.java:58)
at org.jboss.tools.openshift.internal.common.ui.explorer.BaseExplorerContentProvider$ConnectionsRegistryListener.connectionChanged(BaseExplorerContentProvider.java:217)
at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:158)
at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:116)
at org.jboss.tools.openshift.internal.ui.job.DeleteResourceJob.doRun(DeleteResourceJob.java:48)
at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
I suggest that you maybe rebase to latest master, maybe current master behaves differently? |
@adietish fixed with this openshift/openshift-restclient-java#36 |
ok, after pulling and building openshift-restclient-java no NPE any more. |
rebased, merged and pushed to upstream/master |
@adietish This also includes a refactor of the view refresh logic by moving it to the model.