~berthold-daum/zora/trunk

« back to all changes in this revision

Viewing changes to com.bdaum.zoom.ui/src/com/bdaum/zoom/ui/internal/hover/HoveringController.java

  • Committer: bdaum
  • Date: 2015-12-26 10:21:51 UTC
  • Revision ID: berthold.daum@bdaum.de-20151226102151-44f1j5113167thb9
VersionĀ 2.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
                 */
73
73
                public WindowCloser(Object coveredObject, Region[] coveredRegions) {
74
74
                        fCoveredObject = coveredObject;
75
 
                        fCoveredRegions = new String[coveredRegions.length];
76
 
                        for (int i = 0; i < coveredRegions.length; i++)
77
 
                                fCoveredRegions[i] = coveredRegions[i].getStringId();
 
75
                        if (coveredRegions != null) {
 
76
                                fCoveredRegions = new String[coveredRegions.length];
 
77
                                for (int i = 0; i < coveredRegions.length; i++)
 
78
                                        fCoveredRegions[i] = coveredRegions[i].getStringId();
 
79
                        } else
 
80
                                fCoveredRegions = null;
78
81
                }
79
82
 
80
83
                /**