Repository: gephi/gephi (language: java)

Issue:
gephi does not build: broken netbeans artifactory url
Problem: Gephi does not build on a (java) clean machine.
used command: `(jdkhome="/home/csaba/java/jdk8u282-b08" mvn -e clean install)`
broken link:  https://bits.netbeans.org/nexus/content/groups/netbeans/
```
Repository decommissioned. Please refer to https://netbeans.apache.org/about/oracle-transition.html for more information.
```
see: https://netbeans.apache.org/about/oracle-transition.html

## Your Environment

* Version used: Gephi 0.9.2
* Java version: jdk8u282-b08
* Operating System: Ubuntu 16.04



Discussion / hints:

Fix patch:
diff --git a/modules/VisualizationImpl/src/main/java/org/gephi/visualization/model/edge/Edge2dModel.java b/modules/VisualizationImpl/src/main/java/org/gephi/visualization/model/edge/Edge2dModel.java
index 541e273b34..71b097c89c 100644
--- a/modules/VisualizationImpl/src/main/java/org/gephi/visualization/model/edge/Edge2dModel.java
+++ b/modules/VisualizationImpl/src/main/java/org/gephi/visualization/model/edge/Edge2dModel.java
@@ -190,10 +190,18 @@ public void display(GL2 gl, GLU glu, VizModel vizModel) {
                 b = edge.b();
 
                 if (edge.alpha() == 0f) {
-                    Node node = sourceModel.isSelected() ? edge.getTarget() : edge.getSource();
-                    r = node.r();
-                    g = node.g();
-                    b = node.b();
+                    if (edge.isDirected()) {
+                      Node source = edge.getSource();
+                      r = source.r();
+                      g = source.g();
+                      b = source.b();
+                    } else {
+                      // HINT: for undirected graphs use the non-selected node color, see: issue #292
+                      Node node = sourceModel.isSelected() ? edge.getTarget() : edge.getSource();
+                      r = node.r();
+                      g = node.g();
+                      b = node.b();
+                    }
                 }
 
                 r = Math.min(1, 0.5f * r + 0.5f);


Test patch: