File:deal with null pointer exception on file api table view 35/39335/3
authorhyeran74.kim <hyeran74.kim@samsung.com>
Wed, 13 May 2015 08:47:26 +0000 (17:47 +0900)
committerwoojin jung <woojin2.jung@samsung.com>
Wed, 10 Jun 2015 11:00:36 +0000 (04:00 -0700)
Change-Id: I2312ca271e958e7ae5dd05b9a80a508019c59f3c
Signed-off-by: hyeran74.kim <hyeran74.kim@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/file/FileApiListTable.java

index 1839c5a..1c825cf 100644 (file)
@@ -106,7 +106,9 @@ public class FileApiListTable extends DAApiListTableComposite {
                FileApiListView view = (FileApiListView) AnalyzerManager
                                .getCurrentPage().getView(FilePage.apilistViewID);
                
-               if(view == null ) return null;
+               if(view == null ) {
+                       return null;
+               }
 
                long rangeStartTime = view.getRangeStartTime();
                long rangeEndTime = view.getRangeEndTime();
@@ -117,6 +119,11 @@ public class FileApiListTable extends DAApiListTableComposite {
                List<TableInput> input = new ArrayList<TableInput>();
                
                FileSelectedData selectedData = fileDataManager.getSelectedData();
+               
+               if(selectedData == null) {
+                       return null;
+               }
+               
                ResultSet rs = fileDataManager.getApiDB().selectAPI(
                                selectedData.getFileId(),
                                selectedData.getAccessorId(),