Program: 189770
Project: 189770
Buggy source:
public DefaultPreset(){
  super(NbBundle.getMessage(DefaultPreset.class,"String_Node_Str"));
  properties.put(PreviewProperty.ARROW_SIZE,3f);
  properties.put(PreviewProperty.BACKGROUND_COLOR,Color.WHITE);
  properties.put(PreviewProperty.EDGE_COLOR,new EdgeColor(EdgeColor.Mode.MIXED));
  properties.put(PreviewProperty.EDGE_CURVED,true);
  properties.put(PreviewProperty.EDGE_RESCALE_WEIGHT,Boolean.FALSE);
  properties.put(PreviewProperty.EDGE_OPACITY,100f);
  properties.put(PreviewProperty.EDGE_RADIUS,0f);
  properties.put(PreviewProperty.EDGE_THICKNESS,1f);
  properties.put(PreviewProperty.EDGE_LABEL_COLOR,new DependantOriginalColor(DependantOriginalColor.Mode.ORIGINAL));
  properties.put(PreviewProperty.EDGE_LABEL_FONT,new Font("String_Node_Str",Font.PLAIN,10));
  properties.put(PreviewProperty.EDGE_LABEL_MAX_CHAR,30);
  properties.put(PreviewProperty.EDGE_LABEL_OUTLINE_COLOR,new DependantColor(Color.WHITE));
  properties.put(PreviewProperty.EDGE_LABEL_OUTLINE_OPACITY,80f);
  properties.put(PreviewProperty.EDGE_LABEL_OUTLINE_SIZE,0f);
  properties.put(PreviewProperty.EDGE_LABEL_SHORTEN,false);
  properties.put(PreviewProperty.NODE_BORDER_COLOR,new DependantColor(Color.BLACK));
  properties.put(PreviewProperty.NODE_BORDER_WIDTH,1.0f);
  properties.put(PreviewProperty.NODE_OPACITY,100f);
  properties.put(PreviewProperty.NODE_LABEL_BOX_COLOR,new DependantColor(DependantColor.Mode.PARENT));
  properties.put(PreviewProperty.NODE_LABEL_BOX_OPACITY,100f);
  properties.put(PreviewProperty.NODE_LABEL_COLOR,new DependantOriginalColor(Color.BLACK));
  properties.put(PreviewProperty.NODE_LABEL_FONT,new Font("String_Node_Str",Font.PLAIN,12));
  properties.put(PreviewProperty.NODE_LABEL_MAX_CHAR,30);
  properties.put(PreviewProperty.NODE_LABEL_OUTLINE_COLOR,new DependantColor(Color.WHITE));
  properties.put(PreviewProperty.NODE_LABEL_OUTLINE_OPACITY,80f);
  properties.put(PreviewProperty.NODE_LABEL_OUTLINE_SIZE,0f);
  properties.put(PreviewProperty.NODE_LABEL_PROPORTIONAL_SIZE,true);
  properties.put(PreviewProperty.NODE_LABEL_SHORTEN,false);
  properties.put(PreviewProperty.NODE_LABEL_SHOW_BOX,false);
  properties.put(PreviewProperty.SHOW_EDGES,Boolean.TRUE);
  properties.put(PreviewProperty.SHOW_EDGE_LABELS,Boolean.FALSE);
  properties.put(PreviewProperty.SHOW_NODE_LABELS,Boolean.FALSE);
  properties.put(PreviewProperty.EDGE_LAYOUT_USE_RENDERER,PreviewProperty.RendererModes.SimpleRenderer);
  properties.put(PreviewProperty.EDGE_LAYOUT_EDGE_THINKNESS,0.5);
  properties.put(PreviewProperty.EDGE_LAYOUT_EDGE_TRANSPARENCY,0.1);
  properties.put(PreviewProperty.EDGE_LAYOUT_REFRESH_RATE,1);
  properties.put(PreviewProperty.EDGE_LAYOUT_SIMPLE_RENDERER_COLOR,new Color(0f,0f,0.5f));
  properties.put(PreviewProperty.EDGE_LAYOUT_USE_PERCENTAGE_INSTEAD_OF_LINEAR_SCALE,true);
  properties.put(PreviewProperty.EDGE_LAYOUT_PRECALCULATE_POINTS,false);
}

Fixed version (ground truth):
public DefaultPreset(){
  super(NbBundle.getMessage(DefaultPreset.class,"String_Node_Str"));
  properties.put(PreviewProperty.ARROW_SIZE,3f);
  properties.put(PreviewProperty.BACKGROUND_COLOR,Color.WHITE);
  properties.put(PreviewProperty.EDGE_COLOR,new EdgeColor(EdgeColor.Mode.MIXED));
  properties.put(PreviewProperty.EDGE_CURVED,true);
  properties.put(PreviewProperty.EDGE_RESCALE_WEIGHT,Boolean.FALSE);
  properties.put(PreviewProperty.EDGE_OPACITY,100f);
  properties.put(PreviewProperty.EDGE_RADIUS,0f);
  properties.put(PreviewProperty.EDGE_THICKNESS,1f);
  properties.put(PreviewProperty.EDGE_LABEL_COLOR,new DependantOriginalColor(DependantOriginalColor.Mode.ORIGINAL));
  properties.put(PreviewProperty.EDGE_LABEL_FONT,new Font("String_Node_Str",Font.PLAIN,10));
  properties.put(PreviewProperty.EDGE_LABEL_MAX_CHAR,30);
  properties.put(PreviewProperty.EDGE_LABEL_OUTLINE_COLOR,new DependantColor(Color.WHITE));
  properties.put(PreviewProperty.EDGE_LABEL_OUTLINE_OPACITY,80f);
  properties.put(PreviewProperty.EDGE_LABEL_OUTLINE_SIZE,0f);
  properties.put(PreviewProperty.EDGE_LABEL_SHORTEN,false);
  properties.put(PreviewProperty.NODE_BORDER_COLOR,new DependantColor(Color.BLACK));
  properties.put(PreviewProperty.NODE_BORDER_WIDTH,1.0f);
  properties.put(PreviewProperty.NODE_OPACITY,100f);
  properties.put(PreviewProperty.NODE_LABEL_BOX_COLOR,new DependantColor(DependantColor.Mode.PARENT));
  properties.put(PreviewProperty.NODE_LABEL_BOX_OPACITY,100f);
  properties.put(PreviewProperty.NODE_LABEL_COLOR,new DependantOriginalColor(Color.BLACK));
  properties.put(PreviewProperty.NODE_LABEL_FONT,new Font("String_Node_Str",Font.PLAIN,12));
  properties.put(PreviewProperty.NODE_LABEL_MAX_CHAR,30);
  properties.put(PreviewProperty.NODE_LABEL_OUTLINE_COLOR,new DependantColor(Color.WHITE));
  properties.put(PreviewProperty.NODE_LABEL_OUTLINE_OPACITY,80f);
  properties.put(PreviewProperty.NODE_LABEL_OUTLINE_SIZE,0f);
  properties.put(PreviewProperty.NODE_LABEL_PROPORTIONAL_SIZE,true);
  properties.put(PreviewProperty.NODE_LABEL_SHORTEN,false);
  properties.put(PreviewProperty.NODE_LABEL_SHOW_BOX,false);
  properties.put(PreviewProperty.SHOW_EDGES,Boolean.TRUE);
  properties.put(PreviewProperty.SHOW_EDGE_LABELS,Boolean.FALSE);
  properties.put(PreviewProperty.SHOW_NODE_LABELS,Boolean.FALSE);
  properties.put(PreviewProperty.EDGE_LAYOUT_USE_RENDERER,PreviewProperty.RendererModes.SimpleRenderer);
  properties.put(PreviewProperty.EDGE_LAYOUT_EDGE_THICKNESS,0.5);
  properties.put(PreviewProperty.EDGE_LAYOUT_EDGE_TRANSPARENCY,0.1);
  properties.put(PreviewProperty.EDGE_LAYOUT_EDGE_TRANSPARENCY_FORCE,false);
  properties.put(PreviewProperty.EDGE_LAYOUT_REFRESH_RATE,1);
  properties.put(PreviewProperty.EDGE_LAYOUT_SIMPLE_RENDERER_COLOR,new Color(0f,0f,0.5f));
  properties.put(PreviewProperty.EDGE_LAYOUT_USE_PERCENTAGE_INSTEAD_OF_LINEAR_SCALE,true);
  properties.put(PreviewProperty.EDGE_LAYOUT_PRECALCULATE_POINTS,false);
}