fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7340] Fixed bug where program would stop if it didn'


From: Petur Thorsteinsson
Subject: [Fmsystem-commits] [7340] Fixed bug where program would stop if it didn' t find any instances of a ifc type.
Date: Sun, 05 Jun 2011 20:46:36 +0000

Revision: 7340
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7340
Author:   peturbjorn
Date:     2011-06-05 20:46:36 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
Fixed bug where program would stop if it didn't find any instances of a ifc 
type.
Removed unneeded line from jsp file.

Modified Paths:
--------------
    
thirdparty/BIM_converter/trunk/src/main/java/no/bimconverter/ifc/loader/CommonLoader.java
    thirdparty/BIM_converter/trunk/src/main/webapp/index.jsp

Modified: 
thirdparty/BIM_converter/trunk/src/main/java/no/bimconverter/ifc/loader/CommonLoader.java
===================================================================
--- 
thirdparty/BIM_converter/trunk/src/main/java/no/bimconverter/ifc/loader/CommonLoader.java
   2011-06-01 13:22:03 UTC (rev 7339)
+++ 
thirdparty/BIM_converter/trunk/src/main/java/no/bimconverter/ifc/loader/CommonLoader.java
   2011-06-05 20:46:36 UTC (rev 7340)
@@ -49,7 +49,8 @@
        public List<? extends CommonObject> load(SdaiModel model, Class<? 
extends EEntity> IfcObjectType, Class<? extends CommonObject> objectClass) {
                List<EEntity> entityList = getEntitiesOfType(model, 
IfcObjectType);
                if(entityList.size() == 0) {
-                       throw new IfcSdaiException("Error: No elements found!");
+                       //throw new IfcSdaiException("Error: No elements 
found!");
+                       return null;
                } else {
                        List<CommonObject> spaces = new 
ArrayList<CommonObject>();
                        for(EEntity currentEntity: entityList) {

Modified: thirdparty/BIM_converter/trunk/src/main/webapp/index.jsp
===================================================================
--- thirdparty/BIM_converter/trunk/src/main/webapp/index.jsp    2011-06-01 
13:22:03 UTC (rev 7339)
+++ thirdparty/BIM_converter/trunk/src/main/webapp/index.jsp    2011-06-05 
20:46:36 UTC (rev 7340)
@@ -23,6 +23,6 @@
                <label for="file">Choose an IFC file to upload: </label>
                <input  id="file" name="file" type="file" /><br />
                <input type="submit" value="Upload File" />
-       </form>asdf
+       </form>
 </body>
 </html>
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]