Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
Fix bug 879498
Browse files Browse the repository at this point in the history
  • Loading branch information
mbastian committed Oct 21, 2011
1 parent 0411c6d commit e36049e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion FiltersPlugin/manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Manifest-Version: 1.0
AutoUpdate-Essential-Module: true
OpenIDE-Module: org.gephi.filters.plugin
OpenIDE-Module-Localizing-Bundle: org/gephi/filters/plugin/Bundle.properties
OpenIDE-Module-Specification-Version: 0.8.0.3
OpenIDE-Module-Specification-Version: 0.8.0.4

Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public static class AttributeRangeFilter implements RangeFilter, Filter {
private AttributeColumn column;
private DynamicAttributesHelper dynamicHelper = new DynamicAttributesHelper(this, null);
//States
private Comparable[] values;
private Comparable[] values = new Comparable[0];

public AttributeRangeFilter(AttributeColumn column) {
this.column = column;
Expand Down Expand Up @@ -283,7 +283,7 @@ public Range getRange() {
}

public void setRange(Range range) {
if (range.getMinimum() == null && range.getMaximum() == null) {
if (range.getMinimum() == null && range.getMaximum() == null && this.range != null) {
//Opening project
this.range = new Range(range.getLowerBound(), range.getUpperBound(), this.range.getMinimum(), this.range.getMaximum());
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static class EdgeWeightFilter implements RangeFilter, EdgeFilter {
private Range range;
private DynamicAttributesHelper dynamicHelper = new DynamicAttributesHelper(this, null);
//States
private List<Float> values;
private List<Float> values = new ArrayList<Float>();

public String getName() {
return NbBundle.getMessage(EdgeWeightBuilder.class, "EdgeWeightBuilder.name");
Expand Down Expand Up @@ -172,7 +172,7 @@ public Range getRange() {
}

public void setRange(Range range) {
if (range.getMinimum() == null && range.getMaximum() == null) {
if (range.getMinimum() == null && range.getMaximum() == null && this.range != null) {
//Opening project
this.range = new Range(range.getLowerBound(), range.getUpperBound(), this.range.getMinimum(), this.range.getMaximum());
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static class DegreeRangeFilter implements RangeFilter, NodeFilter {

private Range range;
//States
private List<Integer> values;
private List<Integer> values = new ArrayList<Integer>();

public String getName() {
return NbBundle.getMessage(DegreeRangeBuilder.class, "DegreeRangeBuilder.name");
Expand Down Expand Up @@ -169,7 +169,7 @@ public Range getRange() {
}

public void setRange(Range range) {
if (range.getMinimum() == null && range.getMaximum() == null) {
if (range.getMinimum() == null && range.getMaximum() == null && this.range != null) {
//Opening project
this.range = new Range(range.getLowerBound(), range.getUpperBound(), this.range.getMinimum(), this.range.getMaximum());
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static class InDegreeRangeFilter implements RangeFilter, NodeFilter {

private Range range;
//States
private List<Integer> values;
private List<Integer> values = new ArrayList<Integer>();

public String getName() {
return NbBundle.getMessage(InDegreeRangeBuilder.class, "InDegreeRangeBuilder.name");
Expand Down Expand Up @@ -171,7 +171,7 @@ public Range getRange() {
}

public void setRange(Range range) {
if (range.getMinimum() == null && range.getMaximum() == null) {
if (range.getMinimum() == null && range.getMaximum() == null && this.range != null) {
//Opening project
this.range = new Range(range.getLowerBound(), range.getUpperBound(), this.range.getMinimum(), this.range.getMaximum());
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static class MutualDegreeRangeFilter implements RangeFilter, NodeFilter {

private Range range;
//States
private List<Integer> values;
private List<Integer> values = new ArrayList<Integer>();

public String getName() {
return NbBundle.getMessage(MutualDegreeRangeFilter.class, "MutualDegreeRangeBuilder.name");
Expand Down Expand Up @@ -171,7 +171,7 @@ public Range getRange() {
}

public void setRange(Range range) {
if (range.getMinimum() == null && range.getMaximum() == null) {
if (range.getMinimum() == null && range.getMaximum() == null && this.range != null) {
//Opening project
this.range = new Range(range.getLowerBound(), range.getUpperBound(), this.range.getMinimum(), this.range.getMaximum());
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static class OutDegreeRangeFilter implements RangeFilter, NodeFilter {

private Range range;
//States
private List<Integer> values;
private List<Integer> values = new ArrayList<Integer>();

public String getName() {
return NbBundle.getMessage(OutDegreeRangeBuilder.class, "OutDegreeRangeBuilder.name");
Expand Down Expand Up @@ -173,7 +173,7 @@ public Range getRange() {
}

public void setRange(Range range) {
if (range.getMinimum() == null && range.getMaximum() == null) {
if (range.getMinimum() == null && range.getMaximum() == null && this.range != null) {
//Opening project
this.range = new Range(range.getLowerBound(), range.getUpperBound(), this.range.getMinimum(), this.range.getMaximum());
} else {
Expand Down

0 comments on commit e36049e

Please sign in to comment.