Ticket #3116: show-error.patch

File show-error.patch, 806 bytes (added by plaicy, 16 years ago)
  • src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java

     
    6565     * @return an instance of RelationEditor suitable for editing that kind of relation
    6666     */
    6767    public static RelationEditor getEditor(OsmDataLayer layer, Relation r, Collection<RelationMember> selectedMembers) {
     68        if (layer == null) {
     69            throw new NullPointerException("layer is null");
     70        }
    6871        for (Class<RelationEditor> e : editors) {
    6972            try {
    7073                Method m = e.getMethod("canEdit", Relation.class);