Skip to content

Commit ecbe7bf

Browse files
committed
Fix #1612 UnsupportedOperationException: 'commlist' is not a sortable column (int[])
Fix #1607 Dynamic node attribute (from csv file) causes unexpected exception
1 parent 7b7d104 commit ecbe7bf

File tree

6 files changed

+14
-17
lines changed

6 files changed

+14
-17
lines changed

modules/AppearanceAPI/src/main/java/org/gephi/appearance/AppearanceModelImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,9 @@ private void refreshAttributeFunctions(boolean graphHasChanged) {
531531
}
532532
if (isRanking(graph, column)) {
533533
if (column.isIndexed()) {
534-
ranking = new AttributeRankingImpl(column, getIndex(localScale));
534+
ranking = new AttributeRankingImpl(column, graph, getIndex(localScale));
535535
} else {
536-
ranking = new AttributeRankingImpl(column, graph);
536+
ranking = new AttributeRankingImpl(column, graph, null);
537537
}
538538
rankings.put(getIdCol(column), ranking);
539539
}
@@ -685,7 +685,7 @@ private boolean isRanking(Graph graph, Column column) {
685685
return true;
686686
}
687687
}
688-
} else if (!column.isDynamic() && column.isIndexed() && column.isNumber()) {
688+
} else if (!column.isDynamic() && !column.isArray() && column.isIndexed() && column.isNumber()) {
689689
Index index;
690690
if (AttributeUtils.isNodeColumn(column)) {
691691
index = localScale ? graphModel.getNodeIndex(graph.getView()) : graphModel.getNodeIndex();

modules/AppearanceAPI/src/main/java/org/gephi/appearance/AttributeRankingImpl.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,16 @@ public class AttributeRankingImpl extends RankingImpl {
2424
protected final Column column;
2525
protected final Graph graph;
2626

27-
public AttributeRankingImpl(Column column, Index index) {
28-
super();
29-
this.column = column;
30-
this.index = index;
31-
this.graph = null;
32-
}
33-
34-
public AttributeRankingImpl(Column column, Graph graph) {
27+
public AttributeRankingImpl(Column column, Graph graph, Index index) {
3528
super();
3629
this.column = column;
3730
this.graph = graph;
38-
this.index = null;
31+
this.index = index;
3932
}
4033

4134
@Override
4235
protected void refresh() {
43-
if (index != null) {
36+
if (index != null && index.isSortable(column)) {
4437
min = index.getMinValue(column);
4538
max = index.getMaxValue(column);
4639
} else {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Manifest-Version: 1.0
22
AutoUpdate-Essential-Module: true
33
OpenIDE-Module-Localizing-Bundle: org/gephi/appearance/Bundle.properties
4-
OpenIDE-Module-Specification-Version: 0.9.1.4
4+
OpenIDE-Module-Specification-Version: 0.9.1.5
55
OpenIDE-Module-Display-Category: Gephi Core
66
OpenIDE-Module-Name: Appearance API

modules/GraphAPI/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<dependency>
2424
<groupId>${project.groupId}</groupId>
2525
<artifactId>graphstore</artifactId>
26-
<version>${graphstore.version}</version>
2726
</dependency>
2827
<dependency>
2928
<groupId>org.netbeans.api</groupId>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Manifest-Version: 1.0
22
OpenIDE-Module-Localizing-Bundle: org/gephi/graph/api/Bundle.properties
33
AutoUpdate-Essential-Module: true
4-
OpenIDE-Module-Specification-Version: 0.9.1.1
4+
OpenIDE-Module-Specification-Version: 0.9.1.2
55
OpenIDE-Module-Display-Category: Gephi Core
66
OpenIDE-Module-Name: Graph API

pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<netbeans.version>RELEASE81</netbeans.version>
135135

136136
<!-- Graphstore version -->
137-
<graphstore.version>0.5.3</graphstore.version>
137+
<graphstore.version>0.5.4</graphstore.version>
138138

139139
<!-- Localization ZIP version, from 'http://netbeans.org/project_downloads/nblocalization' -->
140140
<gephi.platform.localization.version>1.1-NB80</gephi.platform.localization.version>
@@ -394,6 +394,11 @@
394394
<version>${netbeans.version}</version>
395395
<scope>test</scope>
396396
</dependency>
397+
<dependency>
398+
<groupId>${project.groupId}</groupId>
399+
<artifactId>graphstore</artifactId>
400+
<version>${graphstore.version}</version>
401+
</dependency>
397402
<dependency>
398403
<groupId>${project.groupId}</groupId>
399404
<artifactId>gephi-branding</artifactId>

0 commit comments

Comments
 (0)