Skip to content

Commit

Permalink
[fix] dboissier#224 NPE on Idea 2018.2 when building Server Tree
Browse files Browse the repository at this point in the history
  • Loading branch information
dboissier committed Jul 26, 2018
1 parent 47eb8d3 commit 3ebf6dc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 0.12.1
* [fix] #224 NPE encountered in IDEA 2018.2 during Server tree building

Version 0.12.0
* [fix] #137 Date is incorrect in the DatePicker when editing the cell
* [fix] #217 Modifying a server configuration does not work
Expand Down
Binary file removed snapshot/mongo4idea-0.11.0.zip
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public class MongoTreeBuilder extends AbstractTreeBuilder {

public MongoTreeBuilder(@NotNull Tree tree) {
init(tree, new DefaultTreeModel(new DefaultMutableTreeNode()), new MyTreeStructure(), (descriptorLeft, descriptorRight) -> {
if (descriptorLeft.getElement() == null || descriptorRight.getElement() == null) {
return 0;
}

if (descriptorLeft instanceof ServerDescriptor && descriptorRight instanceof ServerDescriptor) {
MongoServer mongoServerLeft = (MongoServer) descriptorLeft.getElement();
MongoServer mongoServerRight = (MongoServer) descriptorRight.getElement();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<idea-plugin>
<name>Mongo Plugin</name>
<description>Mongo integration for Intellij</description>
<version>0.12.0</version>
<version>0.12.1</version>
<vendor email="david.boissier [at] gmail [dot] com" url="http://codinjutsu.blogspot.com">David Boissier</vendor>

<idea-version since-build="145.0"/>
Expand Down

0 comments on commit 3ebf6dc

Please sign in to comment.