File: 0005_fix_HVCodeLayout.patch

package info (click to toggle)
filler 1.02-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,348 kB
  • sloc: java: 4,211; sh: 46; makefile: 41; xml: 29
file content (24 lines) | stat: -rw-r--r-- 924 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: filler-1.02/src/friendless/awt/HCodeLayout.java
===================================================================
--- filler-1.02.orig/src/friendless/awt/HCodeLayout.java
+++ filler-1.02/src/friendless/awt/HCodeLayout.java
@@ -51,6 +51,7 @@ public final class HCodeLayout implement
     }
 
     public void addLayoutComponent(String code, Component comp) {
+        if (null == code) code = new String();
         codes.put(comp,code);
     }
 
Index: filler-1.02/src/friendless/awt/VCodeLayout.java
===================================================================
--- filler-1.02.orig/src/friendless/awt/VCodeLayout.java
+++ filler-1.02/src/friendless/awt/VCodeLayout.java
@@ -58,6 +58,7 @@ public final class VCodeLayout implement
     }
 
     public void addLayoutComponent(String code, Component comp) {
+        if (null == code) code = new String();
         codes.put(comp,code);
     }